Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

lazy

v1.85.0
google.golang.org/grpc/balancer/lazy

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

5 matches

Top ↑

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.

Dependency graph