Documentation ¶
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 { // Bidirectional rpc to get a list of servers. BalanceLoad(ctx context.Context, opts ...grpc.CallOption) (LoadBalancer_BalanceLoadClient, error) }
LoadBalancerClient is the client API for LoadBalancer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLoadBalancerClient ¶
func NewLoadBalancerClient(cc *grpc.ClientConn) LoadBalancerClient
type LoadBalancerServer ¶
type LoadBalancerServer interface { // Bidirectional rpc to get a list of servers. BalanceLoad(LoadBalancer_BalanceLoadServer) error }
LoadBalancerServer is the server API for LoadBalancer service.
type LoadBalancer_BalanceLoadClient ¶
type LoadBalancer_BalanceLoadClient interface { Send(*messages.LoadBalanceRequest) error Recv() (*messages.LoadBalanceResponse, error) grpc.ClientStream }
type LoadBalancer_BalanceLoadServer ¶
type LoadBalancer_BalanceLoadServer interface { Send(*messages.LoadBalanceResponse) error Recv() (*messages.LoadBalanceRequest, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.