Documentation ¶
Index ¶
- Variables
- func WithEndpoint(ctx context.Context, endpoint Endpoint) context.Context
- type Balancer
- func (b *Balancer) Close(ctx context.Context) (err error)
- func (b *Balancer) HasNode(id uint32) bool
- func (b *Balancer) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, ...) error
- func (b *Balancer) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, ...) (_ grpc.ClientStream, err error)
- func (b *Balancer) OnUpdate(...)
- type Endpoint
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoEndpoints = xerrors.Wrap(fmt.Errorf("no endpoints"))
Functions ¶
Types ¶
type Balancer ¶
type Balancer struct {
// contains filtered or unexported fields
}
func (*Balancer) NewStream ¶ added in v3.34.0
func (b *Balancer) NewStream( ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption, ) (_ grpc.ClientStream, err error)
Click to show internal directories.
Click to hide internal directories.