package gracefulswitch

Import Path
	google.golang.org/grpc/internal/balancer/gracefulswitch (on go.dev)

Dependency Relation
	imports 7 packages, and imported by one package

Involved Source Files Package gracefulswitch implements a graceful switch load balancer.
Package-Level Type Names (total 2, in which 1 are exported)
/* sort exporteds by: | */
Balancer is a utility to gracefully switch from one balancer to a new balancer. It implements the balancer.Balancer interface. Close closes any active child balancers. ExitIdle forwards the call to the latest balancer created. If the latest balancer does not support ExitIdle, the subConns are re-connected to manually. ResolverError forwards the error to the latest balancer created. SwitchTo initializes the graceful switch process, which completes based on connectivity state changes on the current/pending balancer. Thus, the switch process is not complete when this method returns. This method must be called synchronously alongside the rest of the balancer.Balancer methods this Graceful Switch Balancer implements. UpdateClientConnState forwards the update to the latest balancer created. UpdateSubConnState forwards the update to the appropriate child. *Balancer : google.golang.org/grpc/balancer.Balancer *Balancer : google.golang.org/grpc/balancer.ExitIdler func NewBalancer(cc balancer.ClientConn, opts balancer.BuildOptions) *Balancer
Package-Level Functions (only one, which is exported)
NewBalancer returns a graceful switch Balancer.
Package-Level Variables (only one, which is unexported)