Documentation
¶
Index ¶
- Variables
- func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
- func RegisterAirTrafficControlServer(s grpc.ServiceRegistrar, srv AirTrafficControlServer)
- func RegisterWebServerServer(s grpc.ServiceRegistrar, srv WebServerServer)
- type AdminClient
- type AdminServer
- type AirTrafficControlClient
- type AirTrafficControlServer
- type AirTrafficControl_ClientAssignClient
- type AirTrafficControl_ClientAssignServer
- type AirTrafficControl_ServerAnnounceClient
- type AirTrafficControl_ServerAnnounceServer
- type ClientAssignRequest
- func (*ClientAssignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClientAssignRequest) GetHasShardId() bool
- func (x *ClientAssignRequest) GetLocation() string
- func (x *ClientAssignRequest) GetServiceName() string
- func (x *ClientAssignRequest) GetShardId() uint32
- func (x *ClientAssignRequest) GetUnique() string
- func (*ClientAssignRequest) ProtoMessage()
- func (x *ClientAssignRequest) ProtoReflect() protoreflect.Message
- func (x *ClientAssignRequest) Reset()
- func (x *ClientAssignRequest) String() string
- type ClientAssignResponse
- func (*ClientAssignResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClientAssignResponse) GetEvents() []*Event
- func (x *ClientAssignResponse) GetGoAway() *GoAway
- func (*ClientAssignResponse) ProtoMessage()
- func (x *ClientAssignResponse) ProtoReflect() protoreflect.Message
- func (x *ClientAssignResponse) Reset()
- func (x *ClientAssignResponse) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetEventType() Event_Type
- func (x *Event) GetIp() []byte
- func (x *Event) GetLocation() string
- func (x *Event) GetPort() uint32
- func (x *Event) GetServerName() string
- func (x *Event) GetServiceConfigJson() string
- func (x *Event) GetUnique() string
- func (x *Event) GetWeight() float32
- func (x *Event) GetZone() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_Type
- type FindRequest
- func (*FindRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindRequest) GetServiceName() string
- func (x *FindRequest) GetShardId() uint32
- func (*FindRequest) ProtoMessage()
- func (x *FindRequest) ProtoReflect() protoreflect.Message
- func (x *FindRequest) Reset()
- func (x *FindRequest) String() string
- type FindResponse
- type GoAway
- type KeyValue
- type LookupRequest
- type LookupResponse
- func (*LookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResponse) GetAllowedClientNames() []string
- func (x *LookupResponse) GetAllowedServerNames() []string
- func (x *LookupResponse) GetExpectedNumClientsPerShard() uint32
- func (x *LookupResponse) GetExpectedNumServersPerShard() uint32
- func (x *LookupResponse) GetIsSharded() bool
- func (x *LookupResponse) GetMaxLoadPerServer() float32
- func (x *LookupResponse) GetNumShards() uint32
- func (*LookupResponse) ProtoMessage()
- func (x *LookupResponse) ProtoReflect() protoreflect.Message
- func (x *LookupResponse) Reset()
- func (x *LookupResponse) String() string
- type PingRequest
- type PingResponse
- type ReloadRequest
- type ReloadResponse
- type ServerAnnounceRequest
- func (*ServerAnnounceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerAnnounceRequest) GetHasShardId() bool
- func (x *ServerAnnounceRequest) GetIp() []byte
- func (x *ServerAnnounceRequest) GetLoad() float32
- func (x *ServerAnnounceRequest) GetLocation() string
- func (x *ServerAnnounceRequest) GetPort() uint32
- func (x *ServerAnnounceRequest) GetServerName() string
- func (x *ServerAnnounceRequest) GetServiceName() string
- func (x *ServerAnnounceRequest) GetShardId() uint32
- func (x *ServerAnnounceRequest) GetUnique() string
- func (x *ServerAnnounceRequest) GetZone() string
- func (*ServerAnnounceRequest) ProtoMessage()
- func (x *ServerAnnounceRequest) ProtoReflect() protoreflect.Message
- func (x *ServerAnnounceRequest) Reset()
- func (x *ServerAnnounceRequest) String() string
- type ServerAnnounceResponse
- func (*ServerAnnounceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerAnnounceResponse) GetGoAway() *GoAway
- func (*ServerAnnounceResponse) ProtoMessage()
- func (x *ServerAnnounceResponse) ProtoReflect() protoreflect.Message
- func (x *ServerAnnounceResponse) Reset()
- func (x *ServerAnnounceResponse) String() string
- type SetHealthRequest
- func (*SetHealthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetHealthRequest) GetIsHealthy() bool
- func (x *SetHealthRequest) GetSubsystemName() string
- func (*SetHealthRequest) ProtoMessage()
- func (x *SetHealthRequest) ProtoReflect() protoreflect.Message
- func (x *SetHealthRequest) Reset()
- func (x *SetHealthRequest) String() string
- type SetHealthResponse
- type ShutdownRequest
- type ShutdownResponse
- type UnimplementedAdminServer
- func (UnimplementedAdminServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (UnimplementedAdminServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error)
- func (UnimplementedAdminServer) SetHealth(context.Context, *SetHealthRequest) (*SetHealthResponse, error)
- func (UnimplementedAdminServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
- type UnimplementedAirTrafficControlServer
- func (UnimplementedAirTrafficControlServer) ClientAssign(AirTrafficControl_ClientAssignServer) error
- func (UnimplementedAirTrafficControlServer) Find(context.Context, *FindRequest) (*FindResponse, error)
- func (UnimplementedAirTrafficControlServer) Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
- func (UnimplementedAirTrafficControlServer) ServerAnnounce(AirTrafficControl_ServerAnnounceServer) error
- type UnimplementedWebServerServer
- type UnsafeAdminServer
- type UnsafeAirTrafficControlServer
- type UnsafeWebServerServer
- type WebMessage
- func (*WebMessage) Descriptor() ([]byte, []int)deprecated
- func (x *WebMessage) GetBodyChunk() []byte
- func (x *WebMessage) GetHeaders() []*KeyValue
- func (x *WebMessage) GetTrailers() []*KeyValue
- func (*WebMessage) ProtoMessage()
- func (x *WebMessage) ProtoReflect() protoreflect.Message
- func (x *WebMessage) Reset()
- func (x *WebMessage) String() string
- type WebServerClient
- type WebServerServer
- type WebServer_ServeClient
- type WebServer_ServeServer
Constants ¶
This section is empty.
Variables ¶
var ( Event_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "INSERT_IP", 2: "DELETE_IP", 3: "UPDATE_WEIGHT", 4: "NEW_SERVICE_CONFIG", } Event_Type_value = map[string]int32{ "UNKNOWN": 0, "INSERT_IP": 1, "DELETE_IP": 2, "UPDATE_WEIGHT": 3, "NEW_SERVICE_CONFIG": 4, } )
Enum value maps for Event_Type.
var Admin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "roxy.Admin", HandlerType: (*AdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Admin_Ping_Handler, }, { MethodName: "Reload", Handler: _Admin_Reload_Handler, }, { MethodName: "Shutdown", Handler: _Admin_Shutdown_Handler, }, { MethodName: "SetHealth", Handler: _Admin_SetHealth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "roxypb/roxy.proto", }
Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var AirTrafficControl_ServiceDesc = grpc.ServiceDesc{ ServiceName: "roxy.AirTrafficControl", HandlerType: (*AirTrafficControlServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Lookup", Handler: _AirTrafficControl_Lookup_Handler, }, { MethodName: "Find", Handler: _AirTrafficControl_Find_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ServerAnnounce", Handler: _AirTrafficControl_ServerAnnounce_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "ClientAssign", Handler: _AirTrafficControl_ClientAssign_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "roxypb/roxy.proto", }
AirTrafficControl_ServiceDesc is the grpc.ServiceDesc for AirTrafficControl service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_roxypb_roxy_proto protoreflect.FileDescriptor
var WebServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "roxy.WebServer", HandlerType: (*WebServerServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Serve", Handler: _WebServer_Serve_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "roxypb/roxy.proto", }
WebServer_ServiceDesc is the grpc.ServiceDesc for WebServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAdminServer ¶
func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
func RegisterAirTrafficControlServer ¶
func RegisterAirTrafficControlServer(s grpc.ServiceRegistrar, srv AirTrafficControlServer)
func RegisterWebServerServer ¶
func RegisterWebServerServer(s grpc.ServiceRegistrar, srv WebServerServer)
Types ¶
type AdminClient ¶
type AdminClient interface {
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
Reload(ctx context.Context, in *ReloadRequest, opts ...grpc.CallOption) (*ReloadResponse, error)
Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
SetHealth(ctx context.Context, in *SetHealthRequest, opts ...grpc.CallOption) (*SetHealthResponse, error)
}
AdminClient is the client API for Admin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAdminClient ¶
func NewAdminClient(cc grpc.ClientConnInterface) AdminClient
type AdminServer ¶
type AdminServer interface {
Ping(context.Context, *PingRequest) (*PingResponse, error)
Reload(context.Context, *ReloadRequest) (*ReloadResponse, error)
Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
SetHealth(context.Context, *SetHealthRequest) (*SetHealthResponse, error)
// contains filtered or unexported methods
}
AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility
type AirTrafficControlClient ¶
type AirTrafficControlClient interface {
Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error)
Find(ctx context.Context, in *FindRequest, opts ...grpc.CallOption) (*FindResponse, error)
ServerAnnounce(ctx context.Context, opts ...grpc.CallOption) (AirTrafficControl_ServerAnnounceClient, error)
ClientAssign(ctx context.Context, opts ...grpc.CallOption) (AirTrafficControl_ClientAssignClient, error)
}
AirTrafficControlClient is the client API for AirTrafficControl service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAirTrafficControlClient ¶
func NewAirTrafficControlClient(cc grpc.ClientConnInterface) AirTrafficControlClient
type AirTrafficControlServer ¶
type AirTrafficControlServer interface {
Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
Find(context.Context, *FindRequest) (*FindResponse, error)
ServerAnnounce(AirTrafficControl_ServerAnnounceServer) error
ClientAssign(AirTrafficControl_ClientAssignServer) error
// contains filtered or unexported methods
}
AirTrafficControlServer is the server API for AirTrafficControl service. All implementations must embed UnimplementedAirTrafficControlServer for forward compatibility
type AirTrafficControl_ClientAssignClient ¶
type AirTrafficControl_ClientAssignClient interface {
Send(*ClientAssignRequest) error
Recv() (*ClientAssignResponse, error)
grpc.ClientStream
}
type AirTrafficControl_ClientAssignServer ¶
type AirTrafficControl_ClientAssignServer interface {
Send(*ClientAssignResponse) error
Recv() (*ClientAssignRequest, error)
grpc.ServerStream
}
type AirTrafficControl_ServerAnnounceClient ¶
type AirTrafficControl_ServerAnnounceClient interface {
Send(*ServerAnnounceRequest) error
Recv() (*ServerAnnounceResponse, error)
grpc.ClientStream
}
type AirTrafficControl_ServerAnnounceServer ¶
type AirTrafficControl_ServerAnnounceServer interface {
Send(*ServerAnnounceResponse) error
Recv() (*ServerAnnounceRequest, error)
grpc.ServerStream
}
type ClientAssignRequest ¶
type ClientAssignRequest struct {
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
ShardId uint32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
Unique string `protobuf:"bytes,4,opt,name=unique,proto3" json:"unique,omitempty"`
HasShardId bool `protobuf:"varint,15,opt,name=has_shard_id,json=hasShardId,proto3" json:"has_shard_id,omitempty"`
// contains filtered or unexported fields
}
func (*ClientAssignRequest) Descriptor
deprecated
func (*ClientAssignRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClientAssignRequest.ProtoReflect.Descriptor instead.
func (*ClientAssignRequest) GetHasShardId ¶
func (x *ClientAssignRequest) GetHasShardId() bool
func (*ClientAssignRequest) GetLocation ¶
func (x *ClientAssignRequest) GetLocation() string
func (*ClientAssignRequest) GetServiceName ¶
func (x *ClientAssignRequest) GetServiceName() string
func (*ClientAssignRequest) GetShardId ¶
func (x *ClientAssignRequest) GetShardId() uint32
func (*ClientAssignRequest) GetUnique ¶
func (x *ClientAssignRequest) GetUnique() string
func (*ClientAssignRequest) ProtoMessage ¶
func (*ClientAssignRequest) ProtoMessage()
func (*ClientAssignRequest) ProtoReflect ¶
func (x *ClientAssignRequest) ProtoReflect() protoreflect.Message
func (*ClientAssignRequest) Reset ¶
func (x *ClientAssignRequest) Reset()
func (*ClientAssignRequest) String ¶
func (x *ClientAssignRequest) String() string
type ClientAssignResponse ¶
type ClientAssignResponse struct {
GoAway *GoAway `protobuf:"bytes,1,opt,name=go_away,json=goAway,proto3" json:"go_away,omitempty"`
Events []*Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
// contains filtered or unexported fields
}
func (*ClientAssignResponse) Descriptor
deprecated
func (*ClientAssignResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClientAssignResponse.ProtoReflect.Descriptor instead.
func (*ClientAssignResponse) GetEvents ¶
func (x *ClientAssignResponse) GetEvents() []*Event
func (*ClientAssignResponse) GetGoAway ¶
func (x *ClientAssignResponse) GetGoAway() *GoAway
func (*ClientAssignResponse) ProtoMessage ¶
func (*ClientAssignResponse) ProtoMessage()
func (*ClientAssignResponse) ProtoReflect ¶
func (x *ClientAssignResponse) ProtoReflect() protoreflect.Message
func (*ClientAssignResponse) Reset ¶
func (x *ClientAssignResponse) Reset()
func (*ClientAssignResponse) String ¶
func (x *ClientAssignResponse) String() string
type Event ¶
type Event struct {
EventType Event_Type `protobuf:"varint,1,opt,name=event_type,json=eventType,proto3,enum=roxy.Event_Type" json:"event_type,omitempty"`
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
Unique string `protobuf:"bytes,3,opt,name=unique,proto3" json:"unique,omitempty"`
ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
Ip []byte `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
Zone string `protobuf:"bytes,6,opt,name=zone,proto3" json:"zone,omitempty"`
Port uint32 `protobuf:"varint,7,opt,name=port,proto3" json:"port,omitempty"`
Weight float32 `protobuf:"fixed32,8,opt,name=weight,proto3" json:"weight,omitempty"`
ServiceConfigJson string `protobuf:"bytes,64,opt,name=service_config_json,json=serviceConfigJson,proto3" json:"service_config_json,omitempty"`
// contains filtered or unexported fields
}
func (*Event) Descriptor
deprecated
func (*Event) GetEventType ¶
func (x *Event) GetEventType() Event_Type
func (*Event) GetLocation ¶
func (*Event) GetServerName ¶
func (*Event) GetServiceConfigJson ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_Type ¶
type Event_Type int32
const ( Event_UNKNOWN Event_Type = 0 Event_INSERT_IP Event_Type = 1 Event_DELETE_IP Event_Type = 2 Event_UPDATE_WEIGHT Event_Type = 3 Event_NEW_SERVICE_CONFIG Event_Type = 4 )
func (Event_Type) Descriptor ¶
func (Event_Type) Descriptor() protoreflect.EnumDescriptor
func (Event_Type) Enum ¶
func (x Event_Type) Enum() *Event_Type
func (Event_Type) EnumDescriptor
deprecated
func (Event_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Event_Type.Descriptor instead.
func (Event_Type) Number ¶
func (x Event_Type) Number() protoreflect.EnumNumber
func (Event_Type) String ¶
func (x Event_Type) String() string
func (Event_Type) Type ¶
func (Event_Type) Type() protoreflect.EnumType
type FindRequest ¶
type FindRequest struct {
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
ShardId uint32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
// contains filtered or unexported fields
}
func (*FindRequest) Descriptor
deprecated
func (*FindRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindRequest.ProtoReflect.Descriptor instead.
func (*FindRequest) GetServiceName ¶
func (x *FindRequest) GetServiceName() string
func (*FindRequest) GetShardId ¶
func (x *FindRequest) GetShardId() uint32
func (*FindRequest) ProtoMessage ¶
func (*FindRequest) ProtoMessage()
func (*FindRequest) ProtoReflect ¶
func (x *FindRequest) ProtoReflect() protoreflect.Message
func (*FindRequest) Reset ¶
func (x *FindRequest) Reset()
func (*FindRequest) String ¶
func (x *FindRequest) String() string
type FindResponse ¶
type FindResponse struct {
GoAway *GoAway `protobuf:"bytes,1,opt,name=go_away,json=goAway,proto3" json:"go_away,omitempty"`
// contains filtered or unexported fields
}
func (*FindResponse) Descriptor
deprecated
func (*FindResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindResponse.ProtoReflect.Descriptor instead.
func (*FindResponse) GetGoAway ¶
func (x *FindResponse) GetGoAway() *GoAway
func (*FindResponse) ProtoMessage ¶
func (*FindResponse) ProtoMessage()
func (*FindResponse) ProtoReflect ¶
func (x *FindResponse) ProtoReflect() protoreflect.Message
func (*FindResponse) Reset ¶
func (x *FindResponse) Reset()
func (*FindResponse) String ¶
func (x *FindResponse) String() string
type GoAway ¶
type GoAway struct {
Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
// contains filtered or unexported fields
}
func (*GoAway) Descriptor
deprecated
func (*GoAway) ProtoMessage ¶
func (*GoAway) ProtoMessage()
func (*GoAway) ProtoReflect ¶
func (x *GoAway) ProtoReflect() protoreflect.Message
type KeyValue ¶
type KeyValue struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*KeyValue) Descriptor
deprecated
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) ProtoReflect ¶
func (x *KeyValue) ProtoReflect() protoreflect.Message
type LookupRequest ¶
type LookupRequest struct {
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// contains filtered or unexported fields
}
func (*LookupRequest) Descriptor
deprecated
func (*LookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
func (*LookupRequest) GetServiceName ¶
func (x *LookupRequest) GetServiceName() string
func (*LookupRequest) ProtoMessage ¶
func (*LookupRequest) ProtoMessage()
func (*LookupRequest) ProtoReflect ¶
func (x *LookupRequest) ProtoReflect() protoreflect.Message
func (*LookupRequest) Reset ¶
func (x *LookupRequest) Reset()
func (*LookupRequest) String ¶
func (x *LookupRequest) String() string
type LookupResponse ¶
type LookupResponse struct {
IsSharded bool `protobuf:"varint,1,opt,name=is_sharded,json=isSharded,proto3" json:"is_sharded,omitempty"`
NumShards uint32 `protobuf:"varint,2,opt,name=num_shards,json=numShards,proto3" json:"num_shards,omitempty"`
ExpectedNumClientsPerShard uint32 `` /* 146-byte string literal not displayed */
ExpectedNumServersPerShard uint32 `` /* 146-byte string literal not displayed */
MaxLoadPerServer float32 `protobuf:"fixed32,5,opt,name=max_load_per_server,json=maxLoadPerServer,proto3" json:"max_load_per_server,omitempty"`
AllowedClientNames []string `protobuf:"bytes,6,rep,name=allowed_client_names,json=allowedClientNames,proto3" json:"allowed_client_names,omitempty"`
AllowedServerNames []string `protobuf:"bytes,7,rep,name=allowed_server_names,json=allowedServerNames,proto3" json:"allowed_server_names,omitempty"`
// contains filtered or unexported fields
}
func (*LookupResponse) Descriptor
deprecated
func (*LookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
func (*LookupResponse) GetAllowedClientNames ¶ added in v0.4.5
func (x *LookupResponse) GetAllowedClientNames() []string
func (*LookupResponse) GetAllowedServerNames ¶ added in v0.4.5
func (x *LookupResponse) GetAllowedServerNames() []string
func (*LookupResponse) GetExpectedNumClientsPerShard ¶
func (x *LookupResponse) GetExpectedNumClientsPerShard() uint32
func (*LookupResponse) GetExpectedNumServersPerShard ¶
func (x *LookupResponse) GetExpectedNumServersPerShard() uint32
func (*LookupResponse) GetIsSharded ¶
func (x *LookupResponse) GetIsSharded() bool
func (*LookupResponse) GetMaxLoadPerServer ¶
func (x *LookupResponse) GetMaxLoadPerServer() float32
func (*LookupResponse) GetNumShards ¶
func (x *LookupResponse) GetNumShards() uint32
func (*LookupResponse) ProtoMessage ¶
func (*LookupResponse) ProtoMessage()
func (*LookupResponse) ProtoReflect ¶
func (x *LookupResponse) ProtoReflect() protoreflect.Message
func (*LookupResponse) Reset ¶
func (x *LookupResponse) Reset()
func (*LookupResponse) String ¶
func (x *LookupResponse) String() string
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct {
// contains filtered or unexported fields
}
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type ReloadRequest ¶
type ReloadRequest struct {
// contains filtered or unexported fields
}
func (*ReloadRequest) Descriptor
deprecated
func (*ReloadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReloadRequest.ProtoReflect.Descriptor instead.
func (*ReloadRequest) ProtoMessage ¶
func (*ReloadRequest) ProtoMessage()
func (*ReloadRequest) ProtoReflect ¶
func (x *ReloadRequest) ProtoReflect() protoreflect.Message
func (*ReloadRequest) Reset ¶
func (x *ReloadRequest) Reset()
func (*ReloadRequest) String ¶
func (x *ReloadRequest) String() string
type ReloadResponse ¶
type ReloadResponse struct {
// contains filtered or unexported fields
}
func (*ReloadResponse) Descriptor
deprecated
func (*ReloadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReloadResponse.ProtoReflect.Descriptor instead.
func (*ReloadResponse) ProtoMessage ¶
func (*ReloadResponse) ProtoMessage()
func (*ReloadResponse) ProtoReflect ¶
func (x *ReloadResponse) ProtoReflect() protoreflect.Message
func (*ReloadResponse) Reset ¶
func (x *ReloadResponse) Reset()
func (*ReloadResponse) String ¶
func (x *ReloadResponse) String() string
type ServerAnnounceRequest ¶
type ServerAnnounceRequest struct {
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
ShardId uint32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
Unique string `protobuf:"bytes,4,opt,name=unique,proto3" json:"unique,omitempty"`
ServerName string `protobuf:"bytes,5,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
Ip []byte `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"`
Zone string `protobuf:"bytes,7,opt,name=zone,proto3" json:"zone,omitempty"`
Port uint32 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"`
HasShardId bool `protobuf:"varint,15,opt,name=has_shard_id,json=hasShardId,proto3" json:"has_shard_id,omitempty"`
Load float32 `protobuf:"fixed32,16,opt,name=load,proto3" json:"load,omitempty"`
// contains filtered or unexported fields
}
func (*ServerAnnounceRequest) Descriptor
deprecated
func (*ServerAnnounceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerAnnounceRequest.ProtoReflect.Descriptor instead.
func (*ServerAnnounceRequest) GetHasShardId ¶
func (x *ServerAnnounceRequest) GetHasShardId() bool
func (*ServerAnnounceRequest) GetIp ¶
func (x *ServerAnnounceRequest) GetIp() []byte
func (*ServerAnnounceRequest) GetLoad ¶
func (x *ServerAnnounceRequest) GetLoad() float32
func (*ServerAnnounceRequest) GetLocation ¶
func (x *ServerAnnounceRequest) GetLocation() string
func (*ServerAnnounceRequest) GetPort ¶
func (x *ServerAnnounceRequest) GetPort() uint32
func (*ServerAnnounceRequest) GetServerName ¶
func (x *ServerAnnounceRequest) GetServerName() string
func (*ServerAnnounceRequest) GetServiceName ¶
func (x *ServerAnnounceRequest) GetServiceName() string
func (*ServerAnnounceRequest) GetShardId ¶
func (x *ServerAnnounceRequest) GetShardId() uint32
func (*ServerAnnounceRequest) GetUnique ¶
func (x *ServerAnnounceRequest) GetUnique() string
func (*ServerAnnounceRequest) GetZone ¶
func (x *ServerAnnounceRequest) GetZone() string
func (*ServerAnnounceRequest) ProtoMessage ¶
func (*ServerAnnounceRequest) ProtoMessage()
func (*ServerAnnounceRequest) ProtoReflect ¶
func (x *ServerAnnounceRequest) ProtoReflect() protoreflect.Message
func (*ServerAnnounceRequest) Reset ¶
func (x *ServerAnnounceRequest) Reset()
func (*ServerAnnounceRequest) String ¶
func (x *ServerAnnounceRequest) String() string
type ServerAnnounceResponse ¶
type ServerAnnounceResponse struct {
GoAway *GoAway `protobuf:"bytes,1,opt,name=go_away,json=goAway,proto3" json:"go_away,omitempty"`
// contains filtered or unexported fields
}
func (*ServerAnnounceResponse) Descriptor
deprecated
func (*ServerAnnounceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerAnnounceResponse.ProtoReflect.Descriptor instead.
func (*ServerAnnounceResponse) GetGoAway ¶
func (x *ServerAnnounceResponse) GetGoAway() *GoAway
func (*ServerAnnounceResponse) ProtoMessage ¶
func (*ServerAnnounceResponse) ProtoMessage()
func (*ServerAnnounceResponse) ProtoReflect ¶
func (x *ServerAnnounceResponse) ProtoReflect() protoreflect.Message
func (*ServerAnnounceResponse) Reset ¶
func (x *ServerAnnounceResponse) Reset()
func (*ServerAnnounceResponse) String ¶
func (x *ServerAnnounceResponse) String() string
type SetHealthRequest ¶ added in v0.4.2
type SetHealthRequest struct {
SubsystemName string `protobuf:"bytes,1,opt,name=subsystem_name,json=subsystemName,proto3" json:"subsystem_name,omitempty"`
IsHealthy bool `protobuf:"varint,2,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"`
// contains filtered or unexported fields
}
func (*SetHealthRequest) Descriptor
deprecated
added in
v0.4.2
func (*SetHealthRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetHealthRequest.ProtoReflect.Descriptor instead.
func (*SetHealthRequest) GetIsHealthy ¶ added in v0.4.2
func (x *SetHealthRequest) GetIsHealthy() bool
func (*SetHealthRequest) GetSubsystemName ¶ added in v0.4.2
func (x *SetHealthRequest) GetSubsystemName() string
func (*SetHealthRequest) ProtoMessage ¶ added in v0.4.2
func (*SetHealthRequest) ProtoMessage()
func (*SetHealthRequest) ProtoReflect ¶ added in v0.4.2
func (x *SetHealthRequest) ProtoReflect() protoreflect.Message
func (*SetHealthRequest) Reset ¶ added in v0.4.2
func (x *SetHealthRequest) Reset()
func (*SetHealthRequest) String ¶ added in v0.4.2
func (x *SetHealthRequest) String() string
type SetHealthResponse ¶ added in v0.4.2
type SetHealthResponse struct {
// contains filtered or unexported fields
}
func (*SetHealthResponse) Descriptor
deprecated
added in
v0.4.2
func (*SetHealthResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetHealthResponse.ProtoReflect.Descriptor instead.
func (*SetHealthResponse) ProtoMessage ¶ added in v0.4.2
func (*SetHealthResponse) ProtoMessage()
func (*SetHealthResponse) ProtoReflect ¶ added in v0.4.2
func (x *SetHealthResponse) ProtoReflect() protoreflect.Message
func (*SetHealthResponse) Reset ¶ added in v0.4.2
func (x *SetHealthResponse) Reset()
func (*SetHealthResponse) String ¶ added in v0.4.2
func (x *SetHealthResponse) String() string
type ShutdownRequest ¶
type ShutdownRequest struct {
// contains filtered or unexported fields
}
func (*ShutdownRequest) Descriptor
deprecated
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) ProtoMessage ¶
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶
type ShutdownResponse struct {
// contains filtered or unexported fields
}
func (*ShutdownResponse) Descriptor
deprecated
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) ProtoMessage ¶
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶
func (x *ShutdownResponse) String() string
type UnimplementedAdminServer ¶
type UnimplementedAdminServer struct {
}
UnimplementedAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedAdminServer) Ping ¶
func (UnimplementedAdminServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedAdminServer) Reload ¶
func (UnimplementedAdminServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error)
func (UnimplementedAdminServer) SetHealth ¶ added in v0.4.2
func (UnimplementedAdminServer) SetHealth(context.Context, *SetHealthRequest) (*SetHealthResponse, error)
func (UnimplementedAdminServer) Shutdown ¶
func (UnimplementedAdminServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
type UnimplementedAirTrafficControlServer ¶
type UnimplementedAirTrafficControlServer struct {
}
UnimplementedAirTrafficControlServer must be embedded to have forward compatible implementations.
func (UnimplementedAirTrafficControlServer) ClientAssign ¶
func (UnimplementedAirTrafficControlServer) ClientAssign(AirTrafficControl_ClientAssignServer) error
func (UnimplementedAirTrafficControlServer) Find ¶
func (UnimplementedAirTrafficControlServer) Find(context.Context, *FindRequest) (*FindResponse, error)
func (UnimplementedAirTrafficControlServer) Lookup ¶
func (UnimplementedAirTrafficControlServer) Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
func (UnimplementedAirTrafficControlServer) ServerAnnounce ¶
func (UnimplementedAirTrafficControlServer) ServerAnnounce(AirTrafficControl_ServerAnnounceServer) error
type UnimplementedWebServerServer ¶
type UnimplementedWebServerServer struct {
}
UnimplementedWebServerServer must be embedded to have forward compatible implementations.
func (UnimplementedWebServerServer) Serve ¶
func (UnimplementedWebServerServer) Serve(WebServer_ServeServer) error
type UnsafeAdminServer ¶
type UnsafeAdminServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.
type UnsafeAirTrafficControlServer ¶
type UnsafeAirTrafficControlServer interface {
// contains filtered or unexported methods
}
UnsafeAirTrafficControlServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AirTrafficControlServer will result in compilation errors.
type UnsafeWebServerServer ¶
type UnsafeWebServerServer interface {
// contains filtered or unexported methods
}
UnsafeWebServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebServerServer will result in compilation errors.
type WebMessage ¶
type WebMessage struct {
BodyChunk []byte `protobuf:"bytes,1,opt,name=body_chunk,json=bodyChunk,proto3" json:"body_chunk,omitempty"`
Headers []*KeyValue `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
Trailers []*KeyValue `protobuf:"bytes,3,rep,name=trailers,proto3" json:"trailers,omitempty"`
// contains filtered or unexported fields
}
func (*WebMessage) Descriptor
deprecated
func (*WebMessage) Descriptor() ([]byte, []int)
Deprecated: Use WebMessage.ProtoReflect.Descriptor instead.
func (*WebMessage) GetBodyChunk ¶
func (x *WebMessage) GetBodyChunk() []byte
func (*WebMessage) GetHeaders ¶
func (x *WebMessage) GetHeaders() []*KeyValue
func (*WebMessage) GetTrailers ¶
func (x *WebMessage) GetTrailers() []*KeyValue
func (*WebMessage) ProtoMessage ¶
func (*WebMessage) ProtoMessage()
func (*WebMessage) ProtoReflect ¶
func (x *WebMessage) ProtoReflect() protoreflect.Message
func (*WebMessage) Reset ¶
func (x *WebMessage) Reset()
func (*WebMessage) String ¶
func (x *WebMessage) String() string
type WebServerClient ¶
type WebServerClient interface {
Serve(ctx context.Context, opts ...grpc.CallOption) (WebServer_ServeClient, error)
}
WebServerClient is the client API for WebServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWebServerClient ¶
func NewWebServerClient(cc grpc.ClientConnInterface) WebServerClient
type WebServerServer ¶
type WebServerServer interface {
Serve(WebServer_ServeServer) error
// contains filtered or unexported methods
}
WebServerServer is the server API for WebServer service. All implementations must embed UnimplementedWebServerServer for forward compatibility
type WebServer_ServeClient ¶
type WebServer_ServeClient interface {
Send(*WebMessage) error
Recv() (*WebMessage, error)
grpc.ClientStream
}
type WebServer_ServeServer ¶
type WebServer_ServeServer interface {
Send(*WebMessage) error
Recv() (*WebMessage, error)
grpc.ServerStream
}