 Documentation
      ¶
      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) Discovery() discovery.Client
- func (b *Balancer) Endpoint() string
- func (b *Balancer) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, ...) error
- func (b *Balancer) Name() string
- func (b *Balancer) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, ...) (_ grpc.ClientStream, err error)
- func (b *Balancer) OnUpdate(onDiscovery func(ctx context.Context, endpoints []endpoint.Info))
- func (b *Balancer) Secure() bool
 
- 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.