Documentation ¶
Overview ¶
Package shimrpc is a generated protocol buffer package.
It is generated from these files:
shimrpc.proto
It has these top-level messages:
RegistrarRequest RegistrarReply
Index ¶
- Variables
- func RegisterRegistrarServer(s *grpc.Server, srv RegistrarServer)
- type RegistrarClient
- type RegistrarReply
- type RegistrarRequest
- func (*RegistrarRequest) Descriptor() ([]byte, []int)
- func (m *RegistrarRequest) GetAction() RegistrarRequest_Action
- func (m *RegistrarRequest) GetBackendAddr() string
- func (m *RegistrarRequest) GetBackendPort() int32
- func (m *RegistrarRequest) GetEnvironmentName() string
- func (m *RegistrarRequest) GetFrontendAddr() string
- func (m *RegistrarRequest) GetFrontendPort() int32
- func (m *RegistrarRequest) GetProxyMode() string
- func (m *RegistrarRequest) GetServiceName() string
- func (*RegistrarRequest) ProtoMessage()
- func (m *RegistrarRequest) Reset()
- func (m *RegistrarRequest) String() string
- type RegistrarRequest_Action
- type RegistrarServer
Constants ¶
This section is empty.
Variables ¶
View Source
var RegistrarRequest_Action_name = map[int32]string{
0: "REGISTER",
1: "DEREGISTER",
}
View Source
var RegistrarRequest_Action_value = map[string]int32{
"REGISTER": 0,
"DEREGISTER": 1,
}
Functions ¶
func RegisterRegistrarServer ¶
func RegisterRegistrarServer(s *grpc.Server, srv RegistrarServer)
Types ¶
type RegistrarClient ¶
type RegistrarClient interface {
Register(ctx context.Context, in *RegistrarRequest, opts ...grpc.CallOption) (*RegistrarReply, error)
}
func NewRegistrarClient ¶
func NewRegistrarClient(cc *grpc.ClientConn) RegistrarClient
type RegistrarReply ¶
type RegistrarReply struct {
StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode" json:"status_code,omitempty"`
}
The response message containing the status
func (*RegistrarReply) Descriptor ¶
func (*RegistrarReply) Descriptor() ([]byte, []int)
func (*RegistrarReply) GetStatusCode ¶
func (m *RegistrarReply) GetStatusCode() int32
func (*RegistrarReply) ProtoMessage ¶
func (*RegistrarReply) ProtoMessage()
func (*RegistrarReply) Reset ¶
func (m *RegistrarReply) Reset()
func (*RegistrarReply) String ¶
func (m *RegistrarReply) String() string
type RegistrarRequest ¶
type RegistrarRequest struct { FrontendAddr string `protobuf:"bytes,1,opt,name=frontend_addr,json=frontendAddr" json:"frontend_addr,omitempty"` FrontendPort int32 `protobuf:"varint,2,opt,name=frontend_port,json=frontendPort" json:"frontend_port,omitempty"` BackendAddr string `protobuf:"bytes,3,opt,name=backend_addr,json=backendAddr" json:"backend_addr,omitempty"` BackendPort int32 `protobuf:"varint,4,opt,name=backend_port,json=backendPort" json:"backend_port,omitempty"` Action RegistrarRequest_Action `protobuf:"varint,5,opt,name=action,enum=shimrpc.RegistrarRequest_Action" json:"action,omitempty"` EnvironmentName string `protobuf:"bytes,6,opt,name=environment_name,json=environmentName" json:"environment_name,omitempty"` ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` ProxyMode string `protobuf:"bytes,8,opt,name=proxy_mode,json=proxyMode" json:"proxy_mode,omitempty"` }
The requested listener and cluster member
func (*RegistrarRequest) Descriptor ¶
func (*RegistrarRequest) Descriptor() ([]byte, []int)
func (*RegistrarRequest) GetAction ¶
func (m *RegistrarRequest) GetAction() RegistrarRequest_Action
func (*RegistrarRequest) GetBackendAddr ¶
func (m *RegistrarRequest) GetBackendAddr() string
func (*RegistrarRequest) GetBackendPort ¶
func (m *RegistrarRequest) GetBackendPort() int32
func (*RegistrarRequest) GetEnvironmentName ¶
func (m *RegistrarRequest) GetEnvironmentName() string
func (*RegistrarRequest) GetFrontendAddr ¶
func (m *RegistrarRequest) GetFrontendAddr() string
func (*RegistrarRequest) GetFrontendPort ¶
func (m *RegistrarRequest) GetFrontendPort() int32
func (*RegistrarRequest) GetProxyMode ¶
func (m *RegistrarRequest) GetProxyMode() string
func (*RegistrarRequest) GetServiceName ¶
func (m *RegistrarRequest) GetServiceName() string
func (*RegistrarRequest) ProtoMessage ¶
func (*RegistrarRequest) ProtoMessage()
func (*RegistrarRequest) Reset ¶
func (m *RegistrarRequest) Reset()
func (*RegistrarRequest) String ¶
func (m *RegistrarRequest) String() string
type RegistrarRequest_Action ¶
type RegistrarRequest_Action int32
const ( RegistrarRequest_REGISTER RegistrarRequest_Action = 0 RegistrarRequest_DEREGISTER RegistrarRequest_Action = 1 )
func (RegistrarRequest_Action) EnumDescriptor ¶
func (RegistrarRequest_Action) EnumDescriptor() ([]byte, []int)
func (RegistrarRequest_Action) String ¶
func (x RegistrarRequest_Action) String() string
type RegistrarServer ¶
type RegistrarServer interface {
Register(context.Context, *RegistrarRequest) (*RegistrarReply, error)
}
Click to show internal directories.
Click to hide internal directories.