Documentation
¶
Overview ¶
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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBalancer ¶
func NewBalancer(cc balancer.ClientConn, bOpts balancer.BuildOptions, childBuilder ChildBuilderFunc) balancer.Balancer
NewBalancer is the constructor for the lazy balancer.
Types ¶
type 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.
Click to show internal directories.
Click to hide internal directories.