roxy_v0

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Event_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "INSERT_IP",
		2: "DELETE_IP",
		3: "UPDATE_WEIGHT",
		4: "NEW_SERVICE_CONFIG",
		5: "DELETE_ALL_IPS",
	}
	Event_Type_value = map[string]int32{
		"UNKNOWN":            0,
		"INSERT_IP":          1,
		"DELETE_IP":          2,
		"UPDATE_WEIGHT":      3,
		"NEW_SERVICE_CONFIG": 4,
		"DELETE_ALL_IPS":     5,
	}
)

Enum value maps for Event_Type.

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "roxy.v0.Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _Admin_Ping_Handler,
		},
		{
			MethodName: "Reload",
			Handler:    _Admin_Reload_Handler,
		},
		{
			MethodName: "Flip",
			Handler:    _Admin_Flip_Handler,
		},
		{
			MethodName: "Shutdown",
			Handler:    _Admin_Shutdown_Handler,
		},
		{
			MethodName: "SetHealth",
			Handler:    _Admin_SetHealth_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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)

View Source
var AirTrafficControl_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "roxy.v0.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: "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)

View Source
var Web_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "roxy.v0.Web",
	HandlerType: (*WebServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Serve",
			Handler:       _Web_Serve_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "roxy.proto",
}

Web_ServiceDesc is the grpc.ServiceDesc for Web 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 RegisterWebServer

func RegisterWebServer(s grpc.ServiceRegistrar, srv WebServer)

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)
	Flip(ctx context.Context, in *FlipRequest, opts ...grpc.CallOption) (*FlipResponse, 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)
	Flip(context.Context, *FlipRequest) (*FlipResponse, 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.

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 {
	First                         *ClientAssignRequest_First `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
	CostCounter                   uint64                     `protobuf:"varint,2,opt,name=cost_counter,json=costCounter,proto3" json:"cost_counter,omitempty"`
	DemandedCostPerSecondEstimate float64                    `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ClientAssignRequest) Descriptor deprecated

func (*ClientAssignRequest) Descriptor() ([]byte, []int)

Deprecated: Use ClientAssignRequest.ProtoReflect.Descriptor instead.

func (*ClientAssignRequest) GetCostCounter

func (x *ClientAssignRequest) GetCostCounter() uint64

func (*ClientAssignRequest) GetDemandedCostPerSecondEstimate

func (x *ClientAssignRequest) GetDemandedCostPerSecondEstimate() float64

func (*ClientAssignRequest) GetFirst

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 ClientAssignRequest_First

type ClientAssignRequest_First 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_First) Descriptor deprecated

func (*ClientAssignRequest_First) Descriptor() ([]byte, []int)

Deprecated: Use ClientAssignRequest_First.ProtoReflect.Descriptor instead.

func (*ClientAssignRequest_First) GetHasShardId

func (x *ClientAssignRequest_First) GetHasShardId() bool

func (*ClientAssignRequest_First) GetLocation

func (x *ClientAssignRequest_First) GetLocation() string

func (*ClientAssignRequest_First) GetServiceName

func (x *ClientAssignRequest_First) GetServiceName() string

func (*ClientAssignRequest_First) GetShardId

func (x *ClientAssignRequest_First) GetShardId() uint32

func (*ClientAssignRequest_First) GetUnique

func (x *ClientAssignRequest_First) GetUnique() string

func (*ClientAssignRequest_First) ProtoMessage

func (*ClientAssignRequest_First) ProtoMessage()

func (*ClientAssignRequest_First) ProtoReflect

func (*ClientAssignRequest_First) Reset

func (x *ClientAssignRequest_First) Reset()

func (*ClientAssignRequest_First) String

func (x *ClientAssignRequest_First) 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.v0.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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetEventType

func (x *Event) GetEventType() Event_Type

func (*Event) GetIp

func (x *Event) GetIp() []byte

func (*Event) GetLocation

func (x *Event) GetLocation() string

func (*Event) GetPort

func (x *Event) GetPort() uint32

func (*Event) GetServerName

func (x *Event) GetServerName() string

func (*Event) GetServiceConfigJson

func (x *Event) GetServiceConfigJson() string

func (*Event) GetUnique

func (x *Event) GetUnique() string

func (*Event) GetWeight

func (x *Event) GetWeight() float32

func (*Event) GetZone

func (x *Event) GetZone() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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
	Event_DELETE_ALL_IPS     Event_Type = 5
)

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

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 FlipRequest added in v0.4.8

type FlipRequest struct {
	// contains filtered or unexported fields
}

func (*FlipRequest) Descriptor deprecated added in v0.4.8

func (*FlipRequest) Descriptor() ([]byte, []int)

Deprecated: Use FlipRequest.ProtoReflect.Descriptor instead.

func (*FlipRequest) ProtoMessage added in v0.4.8

func (*FlipRequest) ProtoMessage()

func (*FlipRequest) ProtoReflect added in v0.4.8

func (x *FlipRequest) ProtoReflect() protoreflect.Message

func (*FlipRequest) Reset added in v0.4.8

func (x *FlipRequest) Reset()

func (*FlipRequest) String added in v0.4.8

func (x *FlipRequest) String() string

type FlipResponse added in v0.4.8

type FlipResponse struct {
	// contains filtered or unexported fields
}

func (*FlipResponse) Descriptor deprecated added in v0.4.8

func (*FlipResponse) Descriptor() ([]byte, []int)

Deprecated: Use FlipResponse.ProtoReflect.Descriptor instead.

func (*FlipResponse) ProtoMessage added in v0.4.8

func (*FlipResponse) ProtoMessage()

func (*FlipResponse) ProtoReflect added in v0.4.8

func (x *FlipResponse) ProtoReflect() protoreflect.Message

func (*FlipResponse) Reset added in v0.4.8

func (x *FlipResponse) Reset()

func (*FlipResponse) String added in v0.4.8

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

Deprecated: Use GoAway.ProtoReflect.Descriptor instead.

func (*GoAway) GetIp

func (x *GoAway) GetIp() []byte

func (*GoAway) GetPort

func (x *GoAway) GetPort() uint32

func (*GoAway) GetZone

func (x *GoAway) GetZone() string

func (*GoAway) ProtoMessage

func (*GoAway) ProtoMessage()

func (*GoAway) ProtoReflect

func (x *GoAway) ProtoReflect() protoreflect.Message

func (*GoAway) Reset

func (x *GoAway) Reset()

func (*GoAway) String

func (x *GoAway) String() string

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

Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.

func (*KeyValue) GetKey

func (x *KeyValue) GetKey() string

func (*KeyValue) GetValue

func (x *KeyValue) GetValue() string

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) ProtoReflect

func (x *KeyValue) ProtoReflect() protoreflect.Message

func (*KeyValue) Reset

func (x *KeyValue) Reset()

func (*KeyValue) String

func (x *KeyValue) String() string

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 {
	AllowedClientNames                []string                `protobuf:"bytes,1,rep,name=allowed_client_names,json=allowedClientNames,proto3" json:"allowed_client_names,omitempty"`
	AllowedServerNames                []string                `protobuf:"bytes,2,rep,name=allowed_server_names,json=allowedServerNames,proto3" json:"allowed_server_names,omitempty"`
	ExpectedNumClientsPerShard        uint32                  `` /* 146-byte string literal not displayed */
	ExpectedNumServersPerShard        uint32                  `` /* 146-byte string literal not displayed */
	IsSharded                         bool                    `protobuf:"varint,5,opt,name=is_sharded,json=isSharded,proto3" json:"is_sharded,omitempty"`
	NumShards                         uint32                  `protobuf:"varint,6,opt,name=num_shards,json=numShards,proto3" json:"num_shards,omitempty"`
	AvgSuppliedCostPerSecondPerServer float64                 `` /* 172-byte string literal not displayed */
	AvgDemandedCostPerQuery           float64                 `` /* 138-byte string literal not displayed */
	Dynamic                           *LookupResponse_Dynamic `protobuf:"bytes,32,opt,name=dynamic,proto3" json:"dynamic,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupResponse) Descriptor deprecated

func (*LookupResponse) Descriptor() ([]byte, []int)

Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.

func (*LookupResponse) GetAllowedClientNames

func (x *LookupResponse) GetAllowedClientNames() []string

func (*LookupResponse) GetAllowedServerNames

func (x *LookupResponse) GetAllowedServerNames() []string

func (*LookupResponse) GetAvgDemandedCostPerQuery

func (x *LookupResponse) GetAvgDemandedCostPerQuery() float64

func (*LookupResponse) GetAvgSuppliedCostPerSecondPerServer

func (x *LookupResponse) GetAvgSuppliedCostPerSecondPerServer() float64

func (*LookupResponse) GetDynamic

func (x *LookupResponse) GetDynamic() *LookupResponse_Dynamic

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) 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 LookupResponse_Dynamic

type LookupResponse_Dynamic struct {
	CurrentNumServers  uint32  `protobuf:"varint,1,opt,name=current_num_servers,json=currentNumServers,proto3" json:"current_num_servers,omitempty"`
	CurrentNumClients  uint32  `protobuf:"varint,2,opt,name=current_num_clients,json=currentNumClients,proto3" json:"current_num_clients,omitempty"`
	CurrentCpsSupplied float64 `protobuf:"fixed64,3,opt,name=current_cps_supplied,json=currentCpsSupplied,proto3" json:"current_cps_supplied,omitempty"`
	CurrentCpsDemanded float64 `protobuf:"fixed64,4,opt,name=current_cps_demanded,json=currentCpsDemanded,proto3" json:"current_cps_demanded,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupResponse_Dynamic) Descriptor deprecated

func (*LookupResponse_Dynamic) Descriptor() ([]byte, []int)

Deprecated: Use LookupResponse_Dynamic.ProtoReflect.Descriptor instead.

func (*LookupResponse_Dynamic) GetCurrentCpsDemanded

func (x *LookupResponse_Dynamic) GetCurrentCpsDemanded() float64

func (*LookupResponse_Dynamic) GetCurrentCpsSupplied

func (x *LookupResponse_Dynamic) GetCurrentCpsSupplied() float64

func (*LookupResponse_Dynamic) GetCurrentNumClients

func (x *LookupResponse_Dynamic) GetCurrentNumClients() uint32

func (*LookupResponse_Dynamic) GetCurrentNumServers

func (x *LookupResponse_Dynamic) GetCurrentNumServers() uint32

func (*LookupResponse_Dynamic) ProtoMessage

func (*LookupResponse_Dynamic) ProtoMessage()

func (*LookupResponse_Dynamic) ProtoReflect

func (x *LookupResponse_Dynamic) ProtoReflect() protoreflect.Message

func (*LookupResponse_Dynamic) Reset

func (x *LookupResponse_Dynamic) Reset()

func (*LookupResponse_Dynamic) String

func (x *LookupResponse_Dynamic) 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 {
	Rev int64 `protobuf:"varint,1,opt,name=rev,proto3" json:"rev,omitempty"`
	// contains filtered or unexported fields
}

func (*ReloadRequest) Descriptor deprecated

func (*ReloadRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReloadRequest.ProtoReflect.Descriptor instead.

func (*ReloadRequest) GetRev added in v0.4.8

func (x *ReloadRequest) GetRev() int64

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 {
	First       *ServerAnnounceRequest_First `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
	CostCounter uint64                       `protobuf:"varint,2,opt,name=cost_counter,json=costCounter,proto3" json:"cost_counter,omitempty"`
	IsServing   bool                         `protobuf:"varint,3,opt,name=is_serving,json=isServing,proto3" json:"is_serving,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerAnnounceRequest) Descriptor deprecated

func (*ServerAnnounceRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServerAnnounceRequest.ProtoReflect.Descriptor instead.

func (*ServerAnnounceRequest) GetCostCounter

func (x *ServerAnnounceRequest) GetCostCounter() uint64

func (*ServerAnnounceRequest) GetFirst

func (*ServerAnnounceRequest) GetIsServing

func (x *ServerAnnounceRequest) GetIsServing() bool

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 ServerAnnounceRequest_First

type ServerAnnounceRequest_First 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"`
	SuppliedCostPerSecond uint32 `` /* 130-byte string literal not displayed */
	HasShardId            bool   `protobuf:"varint,15,opt,name=has_shard_id,json=hasShardId,proto3" json:"has_shard_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerAnnounceRequest_First) Descriptor deprecated

func (*ServerAnnounceRequest_First) Descriptor() ([]byte, []int)

Deprecated: Use ServerAnnounceRequest_First.ProtoReflect.Descriptor instead.

func (*ServerAnnounceRequest_First) GetHasShardId

func (x *ServerAnnounceRequest_First) GetHasShardId() bool

func (*ServerAnnounceRequest_First) GetIp

func (x *ServerAnnounceRequest_First) GetIp() []byte

func (*ServerAnnounceRequest_First) GetLocation

func (x *ServerAnnounceRequest_First) GetLocation() string

func (*ServerAnnounceRequest_First) GetPort

func (x *ServerAnnounceRequest_First) GetPort() uint32

func (*ServerAnnounceRequest_First) GetServerName

func (x *ServerAnnounceRequest_First) GetServerName() string

func (*ServerAnnounceRequest_First) GetServiceName

func (x *ServerAnnounceRequest_First) GetServiceName() string

func (*ServerAnnounceRequest_First) GetShardId

func (x *ServerAnnounceRequest_First) GetShardId() uint32

func (*ServerAnnounceRequest_First) GetSuppliedCostPerSecond

func (x *ServerAnnounceRequest_First) GetSuppliedCostPerSecond() uint32

func (*ServerAnnounceRequest_First) GetUnique

func (x *ServerAnnounceRequest_First) GetUnique() string

func (*ServerAnnounceRequest_First) GetZone

func (x *ServerAnnounceRequest_First) GetZone() string

func (*ServerAnnounceRequest_First) ProtoMessage

func (*ServerAnnounceRequest_First) ProtoMessage()

func (*ServerAnnounceRequest_First) ProtoReflect

func (*ServerAnnounceRequest_First) Reset

func (x *ServerAnnounceRequest_First) Reset()

func (*ServerAnnounceRequest_First) String

func (x *ServerAnnounceRequest_First) 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

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

func (*SetHealthRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetHealthRequest.ProtoReflect.Descriptor instead.

func (*SetHealthRequest) GetIsHealthy

func (x *SetHealthRequest) GetIsHealthy() bool

func (*SetHealthRequest) GetSubsystemName

func (x *SetHealthRequest) GetSubsystemName() string

func (*SetHealthRequest) ProtoMessage

func (*SetHealthRequest) ProtoMessage()

func (*SetHealthRequest) ProtoReflect

func (x *SetHealthRequest) ProtoReflect() protoreflect.Message

func (*SetHealthRequest) Reset

func (x *SetHealthRequest) Reset()

func (*SetHealthRequest) String

func (x *SetHealthRequest) String() string

type SetHealthResponse

type SetHealthResponse struct {
	// contains filtered or unexported fields
}

func (*SetHealthResponse) Descriptor deprecated

func (*SetHealthResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetHealthResponse.ProtoReflect.Descriptor instead.

func (*SetHealthResponse) ProtoMessage

func (*SetHealthResponse) ProtoMessage()

func (*SetHealthResponse) ProtoReflect

func (x *SetHealthResponse) ProtoReflect() protoreflect.Message

func (*SetHealthResponse) Reset

func (x *SetHealthResponse) Reset()

func (*SetHealthResponse) String

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) Flip added in v0.4.8

func (UnimplementedAdminServer) Ping

func (UnimplementedAdminServer) Reload

func (UnimplementedAdminServer) SetHealth

func (UnimplementedAdminServer) Shutdown

type UnimplementedAirTrafficControlServer

type UnimplementedAirTrafficControlServer struct {
}

UnimplementedAirTrafficControlServer must be embedded to have forward compatible implementations.

func (UnimplementedAirTrafficControlServer) ClientAssign

func (UnimplementedAirTrafficControlServer) Find

func (UnimplementedAirTrafficControlServer) Lookup

func (UnimplementedAirTrafficControlServer) ServerAnnounce

type UnimplementedWebServer

type UnimplementedWebServer struct {
}

UnimplementedWebServer must be embedded to have forward compatible implementations.

func (UnimplementedWebServer) Serve

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 UnsafeWebServer

type UnsafeWebServer interface {
	// contains filtered or unexported methods
}

UnsafeWebServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebServer will result in compilation errors.

type WebClient

type WebClient interface {
	Serve(ctx context.Context, opts ...grpc.CallOption) (Web_ServeClient, error)
}

WebClient is the client API for Web 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 NewWebClient

func NewWebClient(cc grpc.ClientConnInterface) WebClient

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 WebServer

type WebServer interface {
	Serve(Web_ServeServer) error
	// contains filtered or unexported methods
}

WebServer is the server API for Web service. All implementations must embed UnimplementedWebServer for forward compatibility

type Web_ServeClient

type Web_ServeClient interface {
	Send(*WebMessage) error
	Recv() (*WebMessage, error)
	grpc.ClientStream
}

type Web_ServeServer

type Web_ServeServer interface {
	Send(*WebMessage) error
	Recv() (*WebMessage, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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