package lazy

import "google.golang.org/grpc/balancer/lazy"

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

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.

Source Files

lazy.go

Version
v1.71.1 (latest)
Published
Mar 28, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
21 hours ago

Tools for package owners.