package
1.21.0-rc1
Repository: https://github.com/hashicorp/consul.git
Documentation: pkg.go.dev

# Packages

package balancer implements a custom gRPC load balancer.
No description provided by the author
No description provided by the author

# Functions

NewClientConnPool create new GRPC client pool to connect to servers using GRPC over RPC.
NewHandler returns a gRPC server that accepts connections from Handle(conn).
NewListener creates a Listener with the given address.
NewPipeListener creates a new PipeListener.
NewTracker returns an implementation of the router.ServerTracker interface backed by the given ServerResolverBuilder and Balancer.

# Variables

ErrPipeClosed is returned when calling Accept or DialContext on a closed PipeListener.

# Structs

ClientConnPool creates and stores a connection for each datacenter.
No description provided by the author
Handler implements a handler for the rpc server listener, and the agent.Component interface for managing the lifecycle of the grpc.Server.
Listener implements the net.Listener interface and allows you to manually pass connections to it.
NoOpHandler implements the same methods as Handler, but performs no handling.
PipeListener implements the net.Listener interface using a net.Pipe so that you can interact with a gRPC service in the same process without going over the network.
Tracker satisfies the ServerTracker interface the router manager uses to register/deregister servers and trigger rebalances.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

ALPNWrapper is a function that is used to wrap a non-TLS connection and returns an appropriate TLS connection or error.
TLSWrapper wraps a non-TLS connection and returns a connection with TLS enabled.