Instance Propertygrpc-swift 2.0.0GRPCCore
names
The names of methods which this configuration applies to.
var names: [Name]
The names of methods which this configuration applies to.
var names: [Name]
import GRPCCore
A gRPC library for Swift written natively in Swift.
struct MethodConfig
Configuration values for executing an RPC.
struct Name
The name of a method to which the method config applies.
init(from decoder: any Decoder) throws
init(names: [Name], waitForReady: Bool? = nil, timeout: Duration? = nil, maxRequestMessageBytes: Int? = nil, maxResponseMessageBytes: Int? = nil, executionPolicy: RPCExecutionPolicy? = nil)
Create an execution configuration.
var executionPolicy: RPCExecutionPolicy?
The policy determining how many times, and when, the RPC is executed.
var maxRequestMessageBytes: Int?
The maximum allowed payload size in bytes for an individual message.
var maxResponseMessageBytes: Int?
The maximum allowed payload size in bytes for an individual response message.
var timeout: Duration?
The default timeout for the RPC.
var waitForReady: Bool?
Whether RPCs for this method should wait until the connection is ready.
func encode(to encoder: any Encoder) throws