grpclb_balancer_v1

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 5 Imported by: 9

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) Descriptor() ([]byte, []int)

func (*Server) GetAddress

func (m *Server) GetAddress() string

func (*Server) GetScore

func (m *Server) GetScore() int64

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) String

func (m *Server) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL