Documentation ¶
Overview ¶
Package grpclb_balancer_v1 is a generated protocol buffer package.
It is generated from these files:
grpclb_balancer_v1/balancer.proto
It has these top-level messages:
Server ServersRequest ServersResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLoadBalancerServer ¶
func RegisterLoadBalancerServer(s *grpc.Server, srv LoadBalancerServer)
Types ¶
type LoadBalancerClient ¶
type LoadBalancerClient interface {
Servers(ctx context.Context, in *ServersRequest, opts ...grpc.CallOption) (*ServersResponse, error)
}
func NewLoadBalancerClient ¶
func NewLoadBalancerClient(cc *grpc.ClientConn) LoadBalancerClient
type LoadBalancerServer ¶
type LoadBalancerServer interface {
Servers(context.Context, *ServersRequest) (*ServersResponse, error)
}
type Server ¶
type Server struct { Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` Score int64 `protobuf:"varint,2,opt,name=score" json:"score,omitempty"` }
func (*Server) Descriptor ¶
func (*Server) GetAddress ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
type ServersRequest ¶
type ServersRequest struct {
Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
}
func (*ServersRequest) Descriptor ¶
func (*ServersRequest) Descriptor() ([]byte, []int)
func (*ServersRequest) GetTarget ¶
func (m *ServersRequest) GetTarget() string
func (*ServersRequest) ProtoMessage ¶
func (*ServersRequest) ProtoMessage()
func (*ServersRequest) Reset ¶
func (m *ServersRequest) Reset()
func (*ServersRequest) String ¶
func (m *ServersRequest) String() string
type ServersResponse ¶
type ServersResponse struct {
Servers []*Server `protobuf:"bytes,1,rep,name=servers" json:"servers,omitempty"`
}
func (*ServersResponse) Descriptor ¶
func (*ServersResponse) Descriptor() ([]byte, []int)
func (*ServersResponse) GetServers ¶
func (m *ServersResponse) GetServers() []*Server
func (*ServersResponse) ProtoMessage ¶
func (*ServersResponse) ProtoMessage()
func (*ServersResponse) Reset ¶
func (m *ServersResponse) Reset()
func (*ServersResponse) String ¶
func (m *ServersResponse) String() string
Click to show internal directories.
Click to hide internal directories.