lazy
v1.85.0
google.golang.org/grpc/balancer/lazy
Documentation
pkg.go.dev ↗Package lazy contains a load balancer that starts in IDLE instead of CONNECTING. Once it starts connecting, it instantiates its delegate.
Experimental
Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.
Functions
NewBalancer
func NewBalancer(cc balancer.ClientConn, bOpts balancer.BuildOptions, childBuilder ChildBuilderFunc) balancer.Balancer
NewBalancer is the constructor for the lazy balancer.
Types
ChildBuilderFunc
type ChildBuilderFunc func(cc balancer.ClientConn, opts balancer.BuildOptions) balancer.Balancer
ChildBuilderFunc creates a new balancer with the ClientConn. It has the same type as the balancer.Builder.Build method.