roxy_v0

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WebSocketFrame_Type_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "DATA_TEXT",
		2:  "DATA_BINARY",
		8:  "CTRL_CLOSE",
		9:  "CTRL_PING",
		10: "CTRL_PONG",
	}
	WebSocketFrame_Type_value = map[string]int32{
		"UNKNOWN":     0,
		"DATA_TEXT":   1,
		"DATA_BINARY": 2,
		"CTRL_CLOSE":  8,
		"CTRL_PING":   9,
		"CTRL_PONG":   10,
	}
)

Enum value maps for WebSocketFrame_Type.

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: "Commit",
			Handler:    _Admin_Commit_Handler,
		},
		{
			MethodName: "Shutdown",
			Handler:    _Admin_Shutdown_Handler,
		},
		{
			MethodName: "SetHealth",
			Handler:    _Admin_SetHealth_Handler,
		},
		{
			MethodName: "GetCertificate",
			Handler:    _Admin_GetCertificate_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: "LookupClients",
			Handler:    _AirTrafficControl_LookupClients_Handler,
		},
		{
			MethodName: "LookupServers",
			Handler:    _AirTrafficControl_LookupServers_Handler,
		},
		{
			MethodName: "Find",
			Handler:    _AirTrafficControl_Find_Handler,
		},
		{
			MethodName: "Transfer",
			Handler:    _AirTrafficControl_Transfer_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,
		},
		{
			StreamName:    "Socket",
			Handler:       _Web_Socket_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)
	Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
	Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
	SetHealth(ctx context.Context, in *SetHealthRequest, opts ...grpc.CallOption) (*SetHealthResponse, error)
	GetCertificate(ctx context.Context, in *GetCertificateRequest, opts ...grpc.CallOption) (*GetCertificateResponse, 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

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)
	LookupClients(ctx context.Context, in *LookupClientsRequest, opts ...grpc.CallOption) (*LookupClientsResponse, error)
	LookupServers(ctx context.Context, in *LookupServersRequest, opts ...grpc.CallOption) (*LookupServersResponse, 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)
	Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, 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)
	LookupClients(context.Context, *LookupClientsRequest) (*LookupClientsResponse, error)
	LookupServers(context.Context, *LookupServersRequest) (*LookupServersResponse, error)
	Find(context.Context, *FindRequest) (*FindResponse, error)
	ServerAnnounce(AirTrafficControl_ServerAnnounceServer) error
	ClientAssign(AirTrafficControl_ClientAssignServer) error
	Transfer(context.Context, *TransferRequest) (*TransferResponse, 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       *ClientData `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 (*ClientAssignRequest) Descriptor deprecated

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

Deprecated: Use ClientAssignRequest.ProtoReflect.Descriptor instead.

func (*ClientAssignRequest) GetCostCounter

func (x *ClientAssignRequest) GetCostCounter() uint64

func (*ClientAssignRequest) GetFirst

func (x *ClientAssignRequest) GetFirst() *ClientData

func (*ClientAssignRequest) GetIsServing added in v0.5.1

func (x *ClientAssignRequest) GetIsServing() bool

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 ClientData added in v0.5.0

type ClientData struct {
	ServiceName           string    `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ShardNumber           uint32    `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber        bool      `protobuf:"varint,3,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	UniqueId              string    `protobuf:"bytes,4,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
	Location              string    `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
	DeclaredCostPerSecond float64   `` /* 131-byte string literal not displayed */
	MeasuredCostPerSecond float64   `` /* 131-byte string literal not displayed */
	IsAlive               bool      `protobuf:"varint,12,opt,name=is_alive,json=isAlive,proto3" json:"is_alive,omitempty"`
	IsServing             bool      `protobuf:"varint,13,opt,name=is_serving,json=isServing,proto3" json:"is_serving,omitempty"`
	History               []*Sample `protobuf:"bytes,14,rep,name=history,proto3" json:"history,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientData) Descriptor deprecated added in v0.5.0

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

Deprecated: Use ClientData.ProtoReflect.Descriptor instead.

func (*ClientData) GetDeclaredCostPerSecond added in v0.5.0

func (x *ClientData) GetDeclaredCostPerSecond() float64

func (*ClientData) GetHasShardNumber added in v0.6.0

func (x *ClientData) GetHasShardNumber() bool

func (*ClientData) GetHistory added in v0.5.0

func (x *ClientData) GetHistory() []*Sample

func (*ClientData) GetIsAlive added in v0.5.0

func (x *ClientData) GetIsAlive() bool

func (*ClientData) GetIsServing added in v0.5.0

func (x *ClientData) GetIsServing() bool

func (*ClientData) GetLocation added in v0.5.0

func (x *ClientData) GetLocation() string

func (*ClientData) GetMeasuredCostPerSecond added in v0.5.0

func (x *ClientData) GetMeasuredCostPerSecond() float64

func (*ClientData) GetServiceName added in v0.5.0

func (x *ClientData) GetServiceName() string

func (*ClientData) GetShardNumber added in v0.6.0

func (x *ClientData) GetShardNumber() uint32

func (*ClientData) GetUniqueId added in v0.6.0

func (x *ClientData) GetUniqueId() string

func (*ClientData) ProtoMessage added in v0.5.0

func (*ClientData) ProtoMessage()

func (*ClientData) ProtoReflect added in v0.5.0

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

func (*ClientData) Reset added in v0.5.0

func (x *ClientData) Reset()

func (*ClientData) String added in v0.5.0

func (x *ClientData) String() string

type CommitRequest added in v0.5.0

type CommitRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use CommitRequest.ProtoReflect.Descriptor instead.

func (*CommitRequest) GetId added in v0.5.0

func (x *CommitRequest) GetId() uint64

func (*CommitRequest) ProtoMessage added in v0.5.0

func (*CommitRequest) ProtoMessage()

func (*CommitRequest) ProtoReflect added in v0.5.0

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

func (*CommitRequest) Reset added in v0.5.0

func (x *CommitRequest) Reset()

func (*CommitRequest) String added in v0.5.0

func (x *CommitRequest) String() string

type CommitResponse added in v0.5.0

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

func (*CommitResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use CommitResponse.ProtoReflect.Descriptor instead.

func (*CommitResponse) ProtoMessage added in v0.5.0

func (*CommitResponse) ProtoMessage()

func (*CommitResponse) ProtoReflect added in v0.5.0

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

func (*CommitResponse) Reset added in v0.5.0

func (x *CommitResponse) Reset()

func (*CommitResponse) String added in v0.5.0

func (x *CommitResponse) 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"`
	UniqueId              string     `protobuf:"bytes,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
	Location              string     `protobuf:"bytes,3,opt,name=location,proto3" json:"location,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"`
	AssignedCostPerSecond float64    `` /* 130-byte string literal not displayed */
	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) GetAssignedCostPerSecond added in v0.6.0

func (x *Event) GetAssignedCostPerSecond() float64

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) GetUniqueId added in v0.6.0

func (x *Event) GetUniqueId() string

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"`
	ShardNumber    uint32 `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber bool   `protobuf:"varint,3,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	// contains filtered or unexported fields
}

func (*FindRequest) Descriptor deprecated

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

Deprecated: Use FindRequest.ProtoReflect.Descriptor instead.

func (*FindRequest) GetHasShardNumber added in v0.6.0

func (x *FindRequest) GetHasShardNumber() bool

func (*FindRequest) GetServiceName

func (x *FindRequest) GetServiceName() string

func (*FindRequest) GetShardNumber added in v0.6.0

func (x *FindRequest) GetShardNumber() 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 {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 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) GetId added in v0.5.0

func (x *FlipRequest) GetId() uint64

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 GetCertificateRequest added in v0.6.2

type GetCertificateRequest struct {
	CertificateName string `protobuf:"bytes,1,opt,name=certificate_name,json=certificateName,proto3" json:"certificate_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCertificateRequest) Descriptor deprecated added in v0.6.2

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

Deprecated: Use GetCertificateRequest.ProtoReflect.Descriptor instead.

func (*GetCertificateRequest) GetCertificateName added in v0.6.2

func (x *GetCertificateRequest) GetCertificateName() string

func (*GetCertificateRequest) ProtoMessage added in v0.6.2

func (*GetCertificateRequest) ProtoMessage()

func (*GetCertificateRequest) ProtoReflect added in v0.6.2

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

func (*GetCertificateRequest) Reset added in v0.6.2

func (x *GetCertificateRequest) Reset()

func (*GetCertificateRequest) String added in v0.6.2

func (x *GetCertificateRequest) String() string

type GetCertificateResponse added in v0.6.2

type GetCertificateResponse struct {
	CertificateBody []byte `protobuf:"bytes,1,opt,name=certificate_body,json=certificateBody,proto3" json:"certificate_body,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCertificateResponse) Descriptor deprecated added in v0.6.2

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

Deprecated: Use GetCertificateResponse.ProtoReflect.Descriptor instead.

func (*GetCertificateResponse) GetCertificateBody added in v0.6.2

func (x *GetCertificateResponse) GetCertificateBody() []byte

func (*GetCertificateResponse) ProtoMessage added in v0.6.2

func (*GetCertificateResponse) ProtoMessage()

func (*GetCertificateResponse) ProtoReflect added in v0.6.2

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

func (*GetCertificateResponse) Reset added in v0.6.2

func (x *GetCertificateResponse) Reset()

func (*GetCertificateResponse) String added in v0.6.2

func (x *GetCertificateResponse) 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 LookupClientsRequest added in v0.5.0

type LookupClientsRequest struct {
	ServiceName    string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ShardNumber    uint32 `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber bool   `protobuf:"varint,3,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	UniqueId       string `protobuf:"bytes,4,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupClientsRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use LookupClientsRequest.ProtoReflect.Descriptor instead.

func (*LookupClientsRequest) GetHasShardNumber added in v0.6.0

func (x *LookupClientsRequest) GetHasShardNumber() bool

func (*LookupClientsRequest) GetServiceName added in v0.5.0

func (x *LookupClientsRequest) GetServiceName() string

func (*LookupClientsRequest) GetShardNumber added in v0.6.0

func (x *LookupClientsRequest) GetShardNumber() uint32

func (*LookupClientsRequest) GetUniqueId added in v0.6.0

func (x *LookupClientsRequest) GetUniqueId() string

func (*LookupClientsRequest) ProtoMessage added in v0.5.0

func (*LookupClientsRequest) ProtoMessage()

func (*LookupClientsRequest) ProtoReflect added in v0.5.0

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

func (*LookupClientsRequest) Reset added in v0.5.0

func (x *LookupClientsRequest) Reset()

func (*LookupClientsRequest) String added in v0.5.0

func (x *LookupClientsRequest) String() string

type LookupClientsResponse added in v0.5.0

type LookupClientsResponse struct {
	Clients []*ClientData `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupClientsResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use LookupClientsResponse.ProtoReflect.Descriptor instead.

func (*LookupClientsResponse) GetClients added in v0.5.0

func (x *LookupClientsResponse) GetClients() []*ClientData

func (*LookupClientsResponse) ProtoMessage added in v0.5.0

func (*LookupClientsResponse) ProtoMessage()

func (*LookupClientsResponse) ProtoReflect added in v0.5.0

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

func (*LookupClientsResponse) Reset added in v0.5.0

func (x *LookupClientsResponse) Reset()

func (*LookupClientsResponse) String added in v0.5.0

func (x *LookupClientsResponse) String() string

type LookupRequest

type LookupRequest struct {
	ServiceName    string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ShardNumber    uint32 `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber bool   `protobuf:"varint,3,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupRequest) Descriptor deprecated

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

Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.

func (*LookupRequest) GetHasShardNumber added in v0.6.0

func (x *LookupRequest) GetHasShardNumber() bool

func (*LookupRequest) GetServiceName

func (x *LookupRequest) GetServiceName() string

func (*LookupRequest) GetShardNumber added in v0.6.0

func (x *LookupRequest) GetShardNumber() uint32

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 */
	Shards                            []*ShardData `protobuf:"bytes,32,rep,name=shards,proto3" json:"shards,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) 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) GetShards added in v0.5.0

func (x *LookupResponse) GetShards() []*ShardData

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 LookupServersRequest added in v0.5.0

type LookupServersRequest struct {
	ServiceName    string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ShardNumber    uint32 `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber bool   `protobuf:"varint,3,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	UniqueId       string `protobuf:"bytes,4,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupServersRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use LookupServersRequest.ProtoReflect.Descriptor instead.

func (*LookupServersRequest) GetHasShardNumber added in v0.6.0

func (x *LookupServersRequest) GetHasShardNumber() bool

func (*LookupServersRequest) GetServiceName added in v0.5.0

func (x *LookupServersRequest) GetServiceName() string

func (*LookupServersRequest) GetShardNumber added in v0.6.0

func (x *LookupServersRequest) GetShardNumber() uint32

func (*LookupServersRequest) GetUniqueId added in v0.6.0

func (x *LookupServersRequest) GetUniqueId() string

func (*LookupServersRequest) ProtoMessage added in v0.5.0

func (*LookupServersRequest) ProtoMessage()

func (*LookupServersRequest) ProtoReflect added in v0.5.0

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

func (*LookupServersRequest) Reset added in v0.5.0

func (x *LookupServersRequest) Reset()

func (*LookupServersRequest) String added in v0.5.0

func (x *LookupServersRequest) String() string

type LookupServersResponse added in v0.5.0

type LookupServersResponse struct {
	Servers []*ServerData `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupServersResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use LookupServersResponse.ProtoReflect.Descriptor instead.

func (*LookupServersResponse) GetServers added in v0.5.0

func (x *LookupServersResponse) GetServers() []*ServerData

func (*LookupServersResponse) ProtoMessage added in v0.5.0

func (*LookupServersResponse) ProtoMessage()

func (*LookupServersResponse) ProtoReflect added in v0.5.0

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

func (*LookupServersResponse) Reset added in v0.5.0

func (x *LookupServersResponse) Reset()

func (*LookupServersResponse) String added in v0.5.0

func (x *LookupServersResponse) 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 {
	Id  uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Rev int64  `protobuf:"varint,2,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) GetId added in v0.5.0

func (x *ReloadRequest) GetId() uint64

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 Sample added in v0.5.0

type Sample struct {
	Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Counter   uint64               `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"`
	// contains filtered or unexported fields
}

func (*Sample) Descriptor deprecated added in v0.5.0

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

Deprecated: Use Sample.ProtoReflect.Descriptor instead.

func (*Sample) GetCounter added in v0.5.0

func (x *Sample) GetCounter() uint64

func (*Sample) GetTimestamp added in v0.5.0

func (x *Sample) GetTimestamp() *timestamp.Timestamp

func (*Sample) ProtoMessage added in v0.5.0

func (*Sample) ProtoMessage()

func (*Sample) ProtoReflect added in v0.5.0

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

func (*Sample) Reset added in v0.5.0

func (x *Sample) Reset()

func (*Sample) String added in v0.5.0

func (x *Sample) String() string

type ServerAnnounceRequest

type ServerAnnounceRequest struct {
	First       *ServerData `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 (x *ServerAnnounceRequest) GetFirst() *ServerData

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 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 ServerData added in v0.5.0

type ServerData struct {
	ServiceName           string    `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ShardNumber           uint32    `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber        bool      `protobuf:"varint,3,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	UniqueId              string    `protobuf:"bytes,4,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
	Location              string    `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
	ServerName            string    `protobuf:"bytes,6,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
	Ip                    []byte    `protobuf:"bytes,7,opt,name=ip,proto3" json:"ip,omitempty"`
	Zone                  string    `protobuf:"bytes,8,opt,name=zone,proto3" json:"zone,omitempty"`
	Port                  uint32    `protobuf:"varint,9,opt,name=port,proto3" json:"port,omitempty"`
	DeclaredCostPerSecond float64   `` /* 131-byte string literal not displayed */
	MeasuredCostPerSecond float64   `` /* 131-byte string literal not displayed */
	IsAlive               bool      `protobuf:"varint,12,opt,name=is_alive,json=isAlive,proto3" json:"is_alive,omitempty"`
	IsServing             bool      `protobuf:"varint,13,opt,name=is_serving,json=isServing,proto3" json:"is_serving,omitempty"`
	History               []*Sample `protobuf:"bytes,14,rep,name=history,proto3" json:"history,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerData) Descriptor deprecated added in v0.5.0

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

Deprecated: Use ServerData.ProtoReflect.Descriptor instead.

func (*ServerData) GetDeclaredCostPerSecond added in v0.5.0

func (x *ServerData) GetDeclaredCostPerSecond() float64

func (*ServerData) GetHasShardNumber added in v0.6.0

func (x *ServerData) GetHasShardNumber() bool

func (*ServerData) GetHistory added in v0.5.0

func (x *ServerData) GetHistory() []*Sample

func (*ServerData) GetIp added in v0.5.0

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

func (*ServerData) GetIsAlive added in v0.5.0

func (x *ServerData) GetIsAlive() bool

func (*ServerData) GetIsServing added in v0.5.0

func (x *ServerData) GetIsServing() bool

func (*ServerData) GetLocation added in v0.5.0

func (x *ServerData) GetLocation() string

func (*ServerData) GetMeasuredCostPerSecond added in v0.5.0

func (x *ServerData) GetMeasuredCostPerSecond() float64

func (*ServerData) GetPort added in v0.5.0

func (x *ServerData) GetPort() uint32

func (*ServerData) GetServerName added in v0.5.0

func (x *ServerData) GetServerName() string

func (*ServerData) GetServiceName added in v0.5.0

func (x *ServerData) GetServiceName() string

func (*ServerData) GetShardNumber added in v0.6.0

func (x *ServerData) GetShardNumber() uint32

func (*ServerData) GetUniqueId added in v0.6.0

func (x *ServerData) GetUniqueId() string

func (*ServerData) GetZone added in v0.5.0

func (x *ServerData) GetZone() string

func (*ServerData) ProtoMessage added in v0.5.0

func (*ServerData) ProtoMessage()

func (*ServerData) ProtoReflect added in v0.5.0

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

func (*ServerData) Reset added in v0.5.0

func (x *ServerData) Reset()

func (*ServerData) String added in v0.5.0

func (x *ServerData) 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 ShardData added in v0.5.0

type ShardData struct {
	ServiceName                 string  `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ShardNumber                 uint32  `protobuf:"varint,2,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber              bool    `protobuf:"varint,3,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	NumClients                  uint32  `protobuf:"varint,4,opt,name=num_clients,json=numClients,proto3" json:"num_clients,omitempty"`
	NumServers                  uint32  `protobuf:"varint,5,opt,name=num_servers,json=numServers,proto3" json:"num_servers,omitempty"`
	DeclaredDemandCostPerSecond float64 `` /* 150-byte string literal not displayed */
	MeasuredDemandCostPerSecond float64 `` /* 150-byte string literal not displayed */
	DeclaredSupplyCostPerSecond float64 `` /* 150-byte string literal not displayed */
	MeasuredSupplyCostPerSecond float64 `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ShardData) Descriptor deprecated added in v0.5.0

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

Deprecated: Use ShardData.ProtoReflect.Descriptor instead.

func (*ShardData) GetDeclaredDemandCostPerSecond added in v0.5.0

func (x *ShardData) GetDeclaredDemandCostPerSecond() float64

func (*ShardData) GetDeclaredSupplyCostPerSecond added in v0.5.0

func (x *ShardData) GetDeclaredSupplyCostPerSecond() float64

func (*ShardData) GetHasShardNumber added in v0.6.0

func (x *ShardData) GetHasShardNumber() bool

func (*ShardData) GetMeasuredDemandCostPerSecond added in v0.5.0

func (x *ShardData) GetMeasuredDemandCostPerSecond() float64

func (*ShardData) GetMeasuredSupplyCostPerSecond added in v0.5.0

func (x *ShardData) GetMeasuredSupplyCostPerSecond() float64

func (*ShardData) GetNumClients added in v0.5.0

func (x *ShardData) GetNumClients() uint32

func (*ShardData) GetNumServers added in v0.5.0

func (x *ShardData) GetNumServers() uint32

func (*ShardData) GetServiceName added in v0.5.0

func (x *ShardData) GetServiceName() string

func (*ShardData) GetShardNumber added in v0.6.0

func (x *ShardData) GetShardNumber() uint32

func (*ShardData) ProtoMessage added in v0.5.0

func (*ShardData) ProtoMessage()

func (*ShardData) ProtoReflect added in v0.5.0

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

func (*ShardData) Reset added in v0.5.0

func (x *ShardData) Reset()

func (*ShardData) String added in v0.5.0

func (x *ShardData) 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 TransferRequest added in v0.5.0

type TransferRequest struct {
	ConfigId       uint64        `protobuf:"varint,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
	ServiceName    string        `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ShardNumber    uint32        `protobuf:"varint,3,opt,name=shard_number,json=shardNumber,proto3" json:"shard_number,omitempty"`
	HasShardNumber bool          `protobuf:"varint,4,opt,name=has_shard_number,json=hasShardNumber,proto3" json:"has_shard_number,omitempty"`
	Clients        []*ClientData `protobuf:"bytes,5,rep,name=clients,proto3" json:"clients,omitempty"`
	Servers        []*ServerData `protobuf:"bytes,6,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.

func (*TransferRequest) GetClients added in v0.5.0

func (x *TransferRequest) GetClients() []*ClientData

func (*TransferRequest) GetConfigId added in v0.5.0

func (x *TransferRequest) GetConfigId() uint64

func (*TransferRequest) GetHasShardNumber added in v0.6.0

func (x *TransferRequest) GetHasShardNumber() bool

func (*TransferRequest) GetServers added in v0.5.0

func (x *TransferRequest) GetServers() []*ServerData

func (*TransferRequest) GetServiceName added in v0.5.0

func (x *TransferRequest) GetServiceName() string

func (*TransferRequest) GetShardNumber added in v0.6.0

func (x *TransferRequest) GetShardNumber() uint32

func (*TransferRequest) ProtoMessage added in v0.5.0

func (*TransferRequest) ProtoMessage()

func (*TransferRequest) ProtoReflect added in v0.5.0

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

func (*TransferRequest) Reset added in v0.5.0

func (x *TransferRequest) Reset()

func (*TransferRequest) String added in v0.5.0

func (x *TransferRequest) String() string

type TransferResponse added in v0.5.0

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

func (*TransferResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead.

func (*TransferResponse) ProtoMessage added in v0.5.0

func (*TransferResponse) ProtoMessage()

func (*TransferResponse) ProtoReflect added in v0.5.0

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

func (*TransferResponse) Reset added in v0.5.0

func (x *TransferResponse) Reset()

func (*TransferResponse) String added in v0.5.0

func (x *TransferResponse) String() string

type UnimplementedAdminServer

type UnimplementedAdminServer struct {
}

UnimplementedAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedAdminServer) Commit added in v0.5.0

func (UnimplementedAdminServer) Flip added in v0.4.8

func (UnimplementedAdminServer) GetCertificate added in v0.6.2

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) LookupClients added in v0.5.0

func (UnimplementedAirTrafficControlServer) LookupServers added in v0.5.0

func (UnimplementedAirTrafficControlServer) ServerAnnounce

func (UnimplementedAirTrafficControlServer) Transfer added in v0.5.0

type UnimplementedWebServer

type UnimplementedWebServer struct {
}

UnimplementedWebServer must be embedded to have forward compatible implementations.

func (UnimplementedWebServer) Serve

func (UnimplementedWebServer) Socket added in v0.6.2

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)
	Socket(ctx context.Context, opts ...grpc.CallOption) (Web_SocketClient, 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
	Socket(Web_SocketServer) error
	// contains filtered or unexported methods
}

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

type WebSocketCloseError added in v0.6.2

type WebSocketCloseError struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*WebSocketCloseError) Descriptor deprecated added in v0.6.2

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

Deprecated: Use WebSocketCloseError.ProtoReflect.Descriptor instead.

func (*WebSocketCloseError) GetCode added in v0.6.2

func (x *WebSocketCloseError) GetCode() uint32

func (*WebSocketCloseError) GetText added in v0.6.2

func (x *WebSocketCloseError) GetText() string

func (*WebSocketCloseError) ProtoMessage added in v0.6.2

func (*WebSocketCloseError) ProtoMessage()

func (*WebSocketCloseError) ProtoReflect added in v0.6.2

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

func (*WebSocketCloseError) Reset added in v0.6.2

func (x *WebSocketCloseError) Reset()

func (*WebSocketCloseError) String added in v0.6.2

func (x *WebSocketCloseError) String() string

type WebSocketExtension added in v0.6.2

type WebSocketExtension struct {
	ExtensionType string   `protobuf:"bytes,1,opt,name=extension_type,json=extensionType,proto3" json:"extension_type,omitempty"`
	ExtensionData *any.Any `protobuf:"bytes,2,opt,name=extension_data,json=extensionData,proto3" json:"extension_data,omitempty"`
	// contains filtered or unexported fields
}

func (*WebSocketExtension) Descriptor deprecated added in v0.6.2

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

Deprecated: Use WebSocketExtension.ProtoReflect.Descriptor instead.

func (*WebSocketExtension) GetExtensionData added in v0.6.2

func (x *WebSocketExtension) GetExtensionData() *any.Any

func (*WebSocketExtension) GetExtensionType added in v0.6.2

func (x *WebSocketExtension) GetExtensionType() string

func (*WebSocketExtension) ProtoMessage added in v0.6.2

func (*WebSocketExtension) ProtoMessage()

func (*WebSocketExtension) ProtoReflect added in v0.6.2

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

func (*WebSocketExtension) Reset added in v0.6.2

func (x *WebSocketExtension) Reset()

func (*WebSocketExtension) String added in v0.6.2

func (x *WebSocketExtension) String() string

type WebSocketFrame added in v0.6.2

type WebSocketFrame struct {
	FrameType           WebSocketFrame_Type   `protobuf:"varint,1,opt,name=frame_type,json=frameType,proto3,enum=roxy.v0.WebSocketFrame_Type" json:"frame_type,omitempty"`
	Payload             []byte                `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	WebsocketExtensions []*WebSocketExtension `protobuf:"bytes,3,rep,name=websocket_extensions,json=websocketExtensions,proto3" json:"websocket_extensions,omitempty"`
	// contains filtered or unexported fields
}

func (*WebSocketFrame) Descriptor deprecated added in v0.6.2

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

Deprecated: Use WebSocketFrame.ProtoReflect.Descriptor instead.

func (*WebSocketFrame) GetFrameType added in v0.6.2

func (x *WebSocketFrame) GetFrameType() WebSocketFrame_Type

func (*WebSocketFrame) GetPayload added in v0.6.2

func (x *WebSocketFrame) GetPayload() []byte

func (*WebSocketFrame) GetWebsocketExtensions added in v0.6.2

func (x *WebSocketFrame) GetWebsocketExtensions() []*WebSocketExtension

func (*WebSocketFrame) ProtoMessage added in v0.6.2

func (*WebSocketFrame) ProtoMessage()

func (*WebSocketFrame) ProtoReflect added in v0.6.2

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

func (*WebSocketFrame) Reset added in v0.6.2

func (x *WebSocketFrame) Reset()

func (*WebSocketFrame) String added in v0.6.2

func (x *WebSocketFrame) String() string

type WebSocketFrame_Type added in v0.6.2

type WebSocketFrame_Type int32
const (
	WebSocketFrame_UNKNOWN     WebSocketFrame_Type = 0
	WebSocketFrame_DATA_TEXT   WebSocketFrame_Type = 1
	WebSocketFrame_DATA_BINARY WebSocketFrame_Type = 2
	WebSocketFrame_CTRL_CLOSE  WebSocketFrame_Type = 8
	WebSocketFrame_CTRL_PING   WebSocketFrame_Type = 9
	WebSocketFrame_CTRL_PONG   WebSocketFrame_Type = 10
)

func (WebSocketFrame_Type) Descriptor added in v0.6.2

func (WebSocketFrame_Type) Enum added in v0.6.2

func (WebSocketFrame_Type) EnumDescriptor deprecated added in v0.6.2

func (WebSocketFrame_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use WebSocketFrame_Type.Descriptor instead.

func (WebSocketFrame_Type) Number added in v0.6.2

func (WebSocketFrame_Type) String added in v0.6.2

func (x WebSocketFrame_Type) String() string

func (WebSocketFrame_Type) Type added in v0.6.2

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
}

type Web_SocketClient added in v0.6.2

type Web_SocketClient interface {
	Send(*WebSocketFrame) error
	Recv() (*WebSocketFrame, error)
	grpc.ClientStream
}

type Web_SocketServer added in v0.6.2

type Web_SocketServer interface {
	Send(*WebSocketFrame) error
	Recv() (*WebSocketFrame, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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