Instance Methodgrpc-swift 2.0.0GRPCCore
encode(to:)
ServiceConfig.swift:215func encode(to encoder: any Encoder) throws
func encode(to encoder: any Encoder) throws
s8GRPCCore13ServiceConfigV013LoadBalancingC0V6encode2toys7Encoder_p_tKF
What are these?31XLB
import GRPCCore
A gRPC library for Swift written natively in Swift.
struct LoadBalancingConfig
Configuration used by clients for load-balancing.
struct ServiceConfig
Service configuration values.
protocol Encoder
A type that can encode values into a native format for external representation.
init(from decoder: any Decoder) throws
static var roundRobin: Self { get }
Creates a round-robin load balancing policy.
static func pickFirst(_ pickFirst: PickFirst) -> ServiceConfig.LoadBalancingConfig
Creates a pick-first load balancing policy.
static func pickFirst(shuffleAddressList: Bool) -> ServiceConfig.LoadBalancingConfig
Creates a pick-first load balancing policy.
var pickFirst: PickFirst? { get set }
The pick-first policy, if configured.
var roundRobin: RoundRobin? { get set }
The round-robin policy, if configured.
struct PickFirst
Configuration for the pick-first load balancing policy.
struct RoundRobin
Configuration for the round-robin load balancing policy.