Initializergrpc-swift 2.0.0GRPCCore
init(serviceConfig:)
Create a new _MethodConfigs
.
init(serviceConfig: ServiceConfig = ServiceConfig())
Parameters
- serviceConfig
The configuration to read
MethodConfig
from.
Create a new _MethodConfigs
.
init(serviceConfig: ServiceConfig = ServiceConfig())
s8GRPCCore13MethodConfigsV13serviceConfigAcA07ServiceE0V_tcfc
What are these?8ELUL
The configuration to read MethodConfig
from.
import GRPCCore
A gRPC library for Swift written natively in Swift.
struct MethodConfigs
A collection of MethodConfig
s, mapped to specific methods or services.
struct ServiceConfig
Service configuration values.
struct MethodConfig
Configuration values for executing an RPC.
subscript(descriptor: MethodDescriptor) -> MethodConfig? { get set }
Get or set the corresponding MethodConfig
for the given MethodDescriptor
.
mutating func setDefaultConfig(_ config: MethodConfig?)
Set a default configuration for all methods that have no overrides.
mutating func setDefaultConfig(_ config: MethodConfig?, forService service: String)
Set a default configuration for a service.