Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBalancerClosed = errors.New("Balancer closed")
View Source
var ErrClientConnClosing = errors.New("Client connection closing")
View Source
var ErrNoAddressAvailable = errors.New("No address available")
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { // Addr is the server address on which a connection will be established. Addr string // Metadata is the information associated with Addr, which may be used // to make load balancing decision. Metadata interface{} }
Address represents a server the client connects to. This is the EXPERIMENTAL API and may be changed or extended in the future.
type Balancer ¶
type Balancer interface { Start(target string) error Get() (addr Address, err error) Close() error }
func HttpRoundRobin ¶
type Clb ¶
type Clb struct {
// contains filtered or unexported fields
}
func (*Clb) ClientConn ¶
func (clb *Clb) ClientConn(target string) *grpc.ClientConn
Click to show internal directories.
Click to hide internal directories.