lazy

package
v1.72.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL