Documentation
¶
Index ¶
- Variables
- type AddServerRequest
- type AddServerResponse
- type Configuration
- type GetServerRequest
- type GetServerResponse
- type ListServersRequest
- func (*ListServersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListServersRequest) GetType() Server_Type
- func (*ListServersRequest) ProtoMessage()
- func (x *ListServersRequest) ProtoReflect() protoreflect.Message
- func (x *ListServersRequest) Reset()
- func (x *ListServersRequest) String() string
- type ListServersResponse
- func (*ListServersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServersResponse) GetServer() []*Server
- func (*ListServersResponse) ProtoMessage()
- func (x *ListServersResponse) ProtoReflect() protoreflect.Message
- func (x *ListServersResponse) Reset()
- func (x *ListServersResponse) String() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetAddress() string
- func (x *Server) GetFlags() uint32
- func (x *Server) GetId() uint32
- func (x *Server) GetMaxUsers() uint32
- func (x *Server) GetName() string
- func (x *Server) GetNumUsers() uint32
- func (x *Server) GetPort() uint32
- func (x *Server) GetType() Server_Type
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type ServerEntry
- func (*ServerEntry) Descriptor() ([]byte, []int)deprecated
- func (x *ServerEntry) GetLastHealthy() *timestamppb.Timestamp
- func (x *ServerEntry) GetLastPing() *timestamppb.Timestamp
- func (x *ServerEntry) GetServer() *Server
- func (*ServerEntry) ProtoMessage()
- func (x *ServerEntry) ProtoReflect() protoreflect.Message
- func (x *ServerEntry) Reset()
- func (x *ServerEntry) String() string
- type Server_Type
- func (Server_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Server_Type) Enum() *Server_Type
- func (Server_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Server_Type) Number() protoreflect.EnumNumber
- func (x Server_Type) String() string
- func (Server_Type) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Server_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "TYPE_LOGIN_SERVER", 2: "TYPE_GAME_SERVER", 3: "TYPE_MESSAGE_SERVER", } Server_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "TYPE_LOGIN_SERVER": 1, "TYPE_GAME_SERVER": 2, "TYPE_MESSAGE_SERVER": 3, } )
Enum value maps for Server_Type.
var File_topologypb_topology_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AddServerRequest ¶
type AddServerRequest struct { Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
func (*AddServerRequest) Descriptor
deprecated
func (*AddServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddServerRequest.ProtoReflect.Descriptor instead.
func (*AddServerRequest) GetServer ¶
func (x *AddServerRequest) GetServer() *Server
func (*AddServerRequest) ProtoMessage ¶
func (*AddServerRequest) ProtoMessage()
func (*AddServerRequest) ProtoReflect ¶
func (x *AddServerRequest) ProtoReflect() protoreflect.Message
func (*AddServerRequest) Reset ¶
func (x *AddServerRequest) Reset()
func (*AddServerRequest) String ¶
func (x *AddServerRequest) String() string
type AddServerResponse ¶
type AddServerResponse struct {
// contains filtered or unexported fields
}
func (*AddServerResponse) Descriptor
deprecated
func (*AddServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddServerResponse.ProtoReflect.Descriptor instead.
func (*AddServerResponse) ProtoMessage ¶
func (*AddServerResponse) ProtoMessage()
func (*AddServerResponse) ProtoReflect ¶
func (x *AddServerResponse) ProtoReflect() protoreflect.Message
func (*AddServerResponse) Reset ¶
func (x *AddServerResponse) Reset()
func (*AddServerResponse) String ¶
func (x *AddServerResponse) String() string
type Configuration ¶
type Configuration struct { Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` // contains filtered or unexported fields }
Configuration stores static server configuration.
func (*Configuration) Descriptor
deprecated
func (*Configuration) Descriptor() ([]byte, []int)
Deprecated: Use Configuration.ProtoReflect.Descriptor instead.
func (*Configuration) GetServers ¶
func (x *Configuration) GetServers() []*Server
func (*Configuration) ProtoMessage ¶
func (*Configuration) ProtoMessage()
func (*Configuration) ProtoReflect ¶
func (x *Configuration) ProtoReflect() protoreflect.Message
func (*Configuration) Reset ¶
func (x *Configuration) Reset()
func (*Configuration) String ¶
func (x *Configuration) String() string
type GetServerRequest ¶
type GetServerRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetServerRequest) Descriptor
deprecated
func (*GetServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServerRequest.ProtoReflect.Descriptor instead.
func (*GetServerRequest) GetId ¶
func (x *GetServerRequest) GetId() uint32
func (*GetServerRequest) ProtoMessage ¶
func (*GetServerRequest) ProtoMessage()
func (*GetServerRequest) ProtoReflect ¶
func (x *GetServerRequest) ProtoReflect() protoreflect.Message
func (*GetServerRequest) Reset ¶
func (x *GetServerRequest) Reset()
func (*GetServerRequest) String ¶
func (x *GetServerRequest) String() string
type GetServerResponse ¶
type GetServerResponse struct { Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
func (*GetServerResponse) Descriptor
deprecated
func (*GetServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetServerResponse.ProtoReflect.Descriptor instead.
func (*GetServerResponse) GetServer ¶
func (x *GetServerResponse) GetServer() *Server
func (*GetServerResponse) ProtoMessage ¶
func (*GetServerResponse) ProtoMessage()
func (*GetServerResponse) ProtoReflect ¶
func (x *GetServerResponse) ProtoReflect() protoreflect.Message
func (*GetServerResponse) Reset ¶
func (x *GetServerResponse) Reset()
func (*GetServerResponse) String ¶
func (x *GetServerResponse) String() string
type ListServersRequest ¶
type ListServersRequest struct { Type Server_Type `protobuf:"varint,1,opt,name=type,proto3,enum=Server_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ListServersRequest) Descriptor
deprecated
func (*ListServersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServersRequest.ProtoReflect.Descriptor instead.
func (*ListServersRequest) GetType ¶
func (x *ListServersRequest) GetType() Server_Type
func (*ListServersRequest) ProtoMessage ¶
func (*ListServersRequest) ProtoMessage()
func (*ListServersRequest) ProtoReflect ¶
func (x *ListServersRequest) ProtoReflect() protoreflect.Message
func (*ListServersRequest) Reset ¶
func (x *ListServersRequest) Reset()
func (*ListServersRequest) String ¶
func (x *ListServersRequest) String() string
type ListServersResponse ¶
type ListServersResponse struct { Server []*Server `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
func (*ListServersResponse) Descriptor
deprecated
func (*ListServersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServersResponse.ProtoReflect.Descriptor instead.
func (*ListServersResponse) GetServer ¶
func (x *ListServersResponse) GetServer() []*Server
func (*ListServersResponse) ProtoMessage ¶
func (*ListServersResponse) ProtoMessage()
func (*ListServersResponse) ProtoReflect ¶
func (x *ListServersResponse) ProtoReflect() protoreflect.Message
func (*ListServersResponse) Reset ¶
func (x *ListServersResponse) Reset()
func (*ListServersResponse) String ¶
func (x *ListServersResponse) String() string
type Server ¶
type Server struct { Type Server_Type `protobuf:"varint,1,opt,name=type,proto3,enum=Server_Type" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` NumUsers uint32 `protobuf:"varint,4,opt,name=num_users,json=numUsers,proto3" json:"num_users,omitempty"` MaxUsers uint32 `protobuf:"varint,5,opt,name=max_users,json=maxUsers,proto3" json:"max_users,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` Port uint32 `protobuf:"varint,7,opt,name=port,proto3" json:"port,omitempty"` Flags uint32 `protobuf:"varint,8,opt,name=flags,proto3" json:"flags,omitempty"` // contains filtered or unexported fields }
Server is the server data provided by a node.
func (*Server) Descriptor
deprecated
func (*Server) GetAddress ¶
func (*Server) GetMaxUsers ¶
func (*Server) GetNumUsers ¶
func (*Server) GetType ¶
func (x *Server) GetType() Server_Type
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type ServerEntry ¶
type ServerEntry struct { Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` LastPing *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_ping,json=lastPing,proto3" json:"last_ping,omitempty"` LastHealthy *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_healthy,json=lastHealthy,proto3" json:"last_healthy,omitempty"` // contains filtered or unexported fields }
ServerEntry is the internal server entry used for storage.
func (*ServerEntry) Descriptor
deprecated
func (*ServerEntry) Descriptor() ([]byte, []int)
Deprecated: Use ServerEntry.ProtoReflect.Descriptor instead.
func (*ServerEntry) GetLastHealthy ¶
func (x *ServerEntry) GetLastHealthy() *timestamppb.Timestamp
func (*ServerEntry) GetLastPing ¶
func (x *ServerEntry) GetLastPing() *timestamppb.Timestamp
func (*ServerEntry) GetServer ¶
func (x *ServerEntry) GetServer() *Server
func (*ServerEntry) ProtoMessage ¶
func (*ServerEntry) ProtoMessage()
func (*ServerEntry) ProtoReflect ¶
func (x *ServerEntry) ProtoReflect() protoreflect.Message
func (*ServerEntry) Reset ¶
func (x *ServerEntry) Reset()
func (*ServerEntry) String ¶
func (x *ServerEntry) String() string
type Server_Type ¶
type Server_Type int32
const ( Server_TYPE_UNSPECIFIED Server_Type = 0 Server_TYPE_LOGIN_SERVER Server_Type = 1 Server_TYPE_GAME_SERVER Server_Type = 2 Server_TYPE_MESSAGE_SERVER Server_Type = 3 )
func (Server_Type) Descriptor ¶
func (Server_Type) Descriptor() protoreflect.EnumDescriptor
func (Server_Type) Enum ¶
func (x Server_Type) Enum() *Server_Type
func (Server_Type) EnumDescriptor
deprecated
func (Server_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Server_Type.Descriptor instead.
func (Server_Type) Number ¶
func (x Server_Type) Number() protoreflect.EnumNumber
func (Server_Type) String ¶
func (x Server_Type) String() string
func (Server_Type) Type ¶
func (Server_Type) Type() protoreflect.EnumType