Documentation ¶
Index ¶
- Variables
- type ConnectPlayerRequest
- func (*ConnectPlayerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectPlayerRequest) GetPlayer() string
- func (x *ConnectPlayerRequest) GetServer() string
- func (*ConnectPlayerRequest) ProtoMessage()
- func (x *ConnectPlayerRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectPlayerRequest) Reset()
- func (x *ConnectPlayerRequest) String() string
- type ConnectPlayerResponse
- type DisconnectPlayerRequest
- func (*DisconnectPlayerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisconnectPlayerRequest) GetPlayer() string
- func (x *DisconnectPlayerRequest) GetReason() string
- func (*DisconnectPlayerRequest) ProtoMessage()
- func (x *DisconnectPlayerRequest) ProtoReflect() protoreflect.Message
- func (x *DisconnectPlayerRequest) Reset()
- func (x *DisconnectPlayerRequest) String() string
- type DisconnectPlayerResponse
- type GetPlayerRequest
- func (*GetPlayerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPlayerRequest) GetId() string
- func (x *GetPlayerRequest) GetUsername() string
- func (*GetPlayerRequest) ProtoMessage()
- func (x *GetPlayerRequest) ProtoReflect() protoreflect.Message
- func (x *GetPlayerRequest) Reset()
- func (x *GetPlayerRequest) String() string
- type GetPlayerResponse
- type ListPlayersRequest
- func (*ListPlayersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPlayersRequest) GetServers() []string
- func (*ListPlayersRequest) ProtoMessage()
- func (x *ListPlayersRequest) ProtoReflect() protoreflect.Message
- func (x *ListPlayersRequest) Reset()
- func (x *ListPlayersRequest) String() string
- type ListPlayersResponse
- func (*ListPlayersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPlayersResponse) GetPlayers() []*Player
- func (*ListPlayersResponse) ProtoMessage()
- func (x *ListPlayersResponse) ProtoReflect() protoreflect.Message
- func (x *ListPlayersResponse) Reset()
- func (x *ListPlayersResponse) String() string
- type ListServersRequest
- type ListServersResponse
- func (*ListServersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServersResponse) GetServers() []*Server
- func (*ListServersResponse) ProtoMessage()
- func (x *ListServersResponse) ProtoReflect() protoreflect.Message
- func (x *ListServersResponse) Reset()
- func (x *ListServersResponse) String() string
- type Player
- type RegisterServerRequest
- func (*RegisterServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterServerRequest) GetAddress() string
- func (x *RegisterServerRequest) GetName() string
- func (*RegisterServerRequest) ProtoMessage()
- func (x *RegisterServerRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterServerRequest) Reset()
- func (x *RegisterServerRequest) String() string
- type RegisterServerResponse
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetAddress() string
- func (x *Server) GetName() string
- func (x *Server) GetPlayers() int32
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type UnregisterServerRequest
- func (*UnregisterServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterServerRequest) GetAddress() string
- func (x *UnregisterServerRequest) GetName() string
- func (*UnregisterServerRequest) ProtoMessage()
- func (x *UnregisterServerRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterServerRequest) Reset()
- func (x *UnregisterServerRequest) String() string
- type UnregisterServerResponse
Constants ¶
This section is empty.
Variables ¶
var File_minekube_gate_v1_gate_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConnectPlayerRequest ¶
type ConnectPlayerRequest struct { // The player's username or ID to connect Player string `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"` // The target server name to connect the player to Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
ConnectPlayerRequest is the request for ConnectPlayer method.
func (*ConnectPlayerRequest) Descriptor
deprecated
func (*ConnectPlayerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectPlayerRequest.ProtoReflect.Descriptor instead.
func (*ConnectPlayerRequest) GetPlayer ¶
func (x *ConnectPlayerRequest) GetPlayer() string
func (*ConnectPlayerRequest) GetServer ¶
func (x *ConnectPlayerRequest) GetServer() string
func (*ConnectPlayerRequest) ProtoMessage ¶
func (*ConnectPlayerRequest) ProtoMessage()
func (*ConnectPlayerRequest) ProtoReflect ¶
func (x *ConnectPlayerRequest) ProtoReflect() protoreflect.Message
func (*ConnectPlayerRequest) Reset ¶
func (x *ConnectPlayerRequest) Reset()
func (*ConnectPlayerRequest) String ¶
func (x *ConnectPlayerRequest) String() string
type ConnectPlayerResponse ¶
type ConnectPlayerResponse struct {
// contains filtered or unexported fields
}
ConnectPlayerResponse is the response for ConnectPlayer method.
func (*ConnectPlayerResponse) Descriptor
deprecated
func (*ConnectPlayerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectPlayerResponse.ProtoReflect.Descriptor instead.
func (*ConnectPlayerResponse) ProtoMessage ¶
func (*ConnectPlayerResponse) ProtoMessage()
func (*ConnectPlayerResponse) ProtoReflect ¶
func (x *ConnectPlayerResponse) ProtoReflect() protoreflect.Message
func (*ConnectPlayerResponse) Reset ¶
func (x *ConnectPlayerResponse) Reset()
func (*ConnectPlayerResponse) String ¶
func (x *ConnectPlayerResponse) String() string
type DisconnectPlayerRequest ¶
type DisconnectPlayerRequest struct { // The player's username or ID to disconnect Player string `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"` // The reason displayed to the player when they are disconnected. // // Formats: // // - `{"text":"Hello, world!"}` - JSON text component. See https://wiki.vg/Text_formatting for details. // // - `§aHello,\n§bworld!` - Simple color codes. See https://wiki.vg/Text_formatting#Colors // // Optional, if empty no reason will be shown. Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
DisconnectPlayerRequest is the request for DisconnectPlayer method.
func (*DisconnectPlayerRequest) Descriptor
deprecated
func (*DisconnectPlayerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectPlayerRequest.ProtoReflect.Descriptor instead.
func (*DisconnectPlayerRequest) GetPlayer ¶
func (x *DisconnectPlayerRequest) GetPlayer() string
func (*DisconnectPlayerRequest) GetReason ¶
func (x *DisconnectPlayerRequest) GetReason() string
func (*DisconnectPlayerRequest) ProtoMessage ¶
func (*DisconnectPlayerRequest) ProtoMessage()
func (*DisconnectPlayerRequest) ProtoReflect ¶
func (x *DisconnectPlayerRequest) ProtoReflect() protoreflect.Message
func (*DisconnectPlayerRequest) Reset ¶
func (x *DisconnectPlayerRequest) Reset()
func (*DisconnectPlayerRequest) String ¶
func (x *DisconnectPlayerRequest) String() string
type DisconnectPlayerResponse ¶
type DisconnectPlayerResponse struct {
// contains filtered or unexported fields
}
DisconnectPlayerResponse is the response for DisconnectPlayer method.
func (*DisconnectPlayerResponse) Descriptor
deprecated
func (*DisconnectPlayerResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectPlayerResponse.ProtoReflect.Descriptor instead.
func (*DisconnectPlayerResponse) ProtoMessage ¶
func (*DisconnectPlayerResponse) ProtoMessage()
func (*DisconnectPlayerResponse) ProtoReflect ¶
func (x *DisconnectPlayerResponse) ProtoReflect() protoreflect.Message
func (*DisconnectPlayerResponse) Reset ¶
func (x *DisconnectPlayerResponse) Reset()
func (*DisconnectPlayerResponse) String ¶
func (x *DisconnectPlayerResponse) String() string
type GetPlayerRequest ¶
type GetPlayerRequest struct { // Gets the player by their Minecraft UUID. // Optional, if not set the username will be used. // If both id and username are set, the id will be used. // Must be a valid Minecraft UUID format (e.g. "550e8400-e29b-41d4-a716-446655440000") Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Gets the player by their username. // Optional, if not set the id will be used. // Case-sensitive. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
GetPlayerRequest is the request for GetPlayer method.
func (*GetPlayerRequest) Descriptor
deprecated
func (*GetPlayerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPlayerRequest.ProtoReflect.Descriptor instead.
func (*GetPlayerRequest) GetId ¶
func (x *GetPlayerRequest) GetId() string
func (*GetPlayerRequest) GetUsername ¶
func (x *GetPlayerRequest) GetUsername() string
func (*GetPlayerRequest) ProtoMessage ¶
func (*GetPlayerRequest) ProtoMessage()
func (*GetPlayerRequest) ProtoReflect ¶
func (x *GetPlayerRequest) ProtoReflect() protoreflect.Message
func (*GetPlayerRequest) Reset ¶
func (x *GetPlayerRequest) Reset()
func (*GetPlayerRequest) String ¶
func (x *GetPlayerRequest) String() string
type GetPlayerResponse ¶
type GetPlayerResponse struct { // The player matching the request criteria Player *Player `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"` // contains filtered or unexported fields }
GetPlayerResponse is the response for GetPlayer method.
func (*GetPlayerResponse) Descriptor
deprecated
func (*GetPlayerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPlayerResponse.ProtoReflect.Descriptor instead.
func (*GetPlayerResponse) GetPlayer ¶
func (x *GetPlayerResponse) GetPlayer() *Player
func (*GetPlayerResponse) ProtoMessage ¶
func (*GetPlayerResponse) ProtoMessage()
func (*GetPlayerResponse) ProtoReflect ¶
func (x *GetPlayerResponse) ProtoReflect() protoreflect.Message
func (*GetPlayerResponse) Reset ¶
func (x *GetPlayerResponse) Reset()
func (*GetPlayerResponse) String ¶
func (x *GetPlayerResponse) String() string
type ListPlayersRequest ¶
type ListPlayersRequest struct { // Filter players by server names. // Optional, if empty all online players are returned. // If specified, only returns players on the listed servers. Servers []string `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` // contains filtered or unexported fields }
ListPlayersRequest is the request for ListPlayers method.
func (*ListPlayersRequest) Descriptor
deprecated
func (*ListPlayersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPlayersRequest.ProtoReflect.Descriptor instead.
func (*ListPlayersRequest) GetServers ¶
func (x *ListPlayersRequest) GetServers() []string
func (*ListPlayersRequest) ProtoMessage ¶
func (*ListPlayersRequest) ProtoMessage()
func (*ListPlayersRequest) ProtoReflect ¶
func (x *ListPlayersRequest) ProtoReflect() protoreflect.Message
func (*ListPlayersRequest) Reset ¶
func (x *ListPlayersRequest) Reset()
func (*ListPlayersRequest) String ¶
func (x *ListPlayersRequest) String() string
type ListPlayersResponse ¶
type ListPlayersResponse struct { Players []*Player `protobuf:"bytes,1,rep,name=players,proto3" json:"players,omitempty"` // contains filtered or unexported fields }
ListPlayersResponse is the response for ListPlayers method.
func (*ListPlayersResponse) Descriptor
deprecated
func (*ListPlayersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPlayersResponse.ProtoReflect.Descriptor instead.
func (*ListPlayersResponse) GetPlayers ¶
func (x *ListPlayersResponse) GetPlayers() []*Player
func (*ListPlayersResponse) ProtoMessage ¶
func (*ListPlayersResponse) ProtoMessage()
func (*ListPlayersResponse) ProtoReflect ¶
func (x *ListPlayersResponse) ProtoReflect() protoreflect.Message
func (*ListPlayersResponse) Reset ¶
func (x *ListPlayersResponse) Reset()
func (*ListPlayersResponse) String ¶
func (x *ListPlayersResponse) String() string
type ListServersRequest ¶
type ListServersRequest struct {
// contains filtered or unexported fields
}
ListServersRequest is the request for ListServers method.
func (*ListServersRequest) Descriptor
deprecated
func (*ListServersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServersRequest.ProtoReflect.Descriptor instead.
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 { Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` // contains filtered or unexported fields }
ListServersResponse is the response for ListServers method.
func (*ListServersResponse) Descriptor
deprecated
func (*ListServersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServersResponse.ProtoReflect.Descriptor instead.
func (*ListServersResponse) GetServers ¶
func (x *ListServersResponse) GetServers() []*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 Player ¶
type Player struct { // The player's Minecraft UUID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The player's username Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
Player represents an online player on the proxy.
func (*Player) Descriptor
deprecated
func (*Player) GetUsername ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) ProtoReflect ¶
func (x *Player) ProtoReflect() protoreflect.Message
type RegisterServerRequest ¶
type RegisterServerRequest struct { // The unique name of the server Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The network address of the server (e.g. "localhost:25565") Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
RegisterServerRequest is the request for RegisterServer method.
func (*RegisterServerRequest) Descriptor
deprecated
func (*RegisterServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServerRequest.ProtoReflect.Descriptor instead.
func (*RegisterServerRequest) GetAddress ¶
func (x *RegisterServerRequest) GetAddress() string
func (*RegisterServerRequest) GetName ¶
func (x *RegisterServerRequest) GetName() string
func (*RegisterServerRequest) ProtoMessage ¶
func (*RegisterServerRequest) ProtoMessage()
func (*RegisterServerRequest) ProtoReflect ¶
func (x *RegisterServerRequest) ProtoReflect() protoreflect.Message
func (*RegisterServerRequest) Reset ¶
func (x *RegisterServerRequest) Reset()
func (*RegisterServerRequest) String ¶
func (x *RegisterServerRequest) String() string
type RegisterServerResponse ¶
type RegisterServerResponse struct {
// contains filtered or unexported fields
}
RegisterServerResponse is the response for RegisterServer method.
func (*RegisterServerResponse) Descriptor
deprecated
func (*RegisterServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServerResponse.ProtoReflect.Descriptor instead.
func (*RegisterServerResponse) ProtoMessage ¶
func (*RegisterServerResponse) ProtoMessage()
func (*RegisterServerResponse) ProtoReflect ¶
func (x *RegisterServerResponse) ProtoReflect() protoreflect.Message
func (*RegisterServerResponse) Reset ¶
func (x *RegisterServerResponse) Reset()
func (*RegisterServerResponse) String ¶
func (x *RegisterServerResponse) String() string
type Server ¶
type Server struct { // The unique name of the server. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The network address of the server. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // The number of players currently on the server. Players int32 `protobuf:"varint,3,opt,name=players,proto3" json:"players,omitempty"` // contains filtered or unexported fields }
Server represents a backend server where Gate can connect players to.
func (*Server) Descriptor
deprecated
func (*Server) GetAddress ¶
func (*Server) GetPlayers ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type UnregisterServerRequest ¶
type UnregisterServerRequest struct { // The name of the server. // Optional, if not set, the address will be used to match servers. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The address of the server. // Optional, if not set, the name will be used to match servers. // If both name and address are set, only the server that matches both properties exactly will be unregistered. // If only the address is set, the first server matching that address will be unregistered. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
UnregisterServerRequest is the request for UnregisterServer method.
func (*UnregisterServerRequest) Descriptor
deprecated
func (*UnregisterServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterServerRequest.ProtoReflect.Descriptor instead.
func (*UnregisterServerRequest) GetAddress ¶
func (x *UnregisterServerRequest) GetAddress() string
func (*UnregisterServerRequest) GetName ¶
func (x *UnregisterServerRequest) GetName() string
func (*UnregisterServerRequest) ProtoMessage ¶
func (*UnregisterServerRequest) ProtoMessage()
func (*UnregisterServerRequest) ProtoReflect ¶
func (x *UnregisterServerRequest) ProtoReflect() protoreflect.Message
func (*UnregisterServerRequest) Reset ¶
func (x *UnregisterServerRequest) Reset()
func (*UnregisterServerRequest) String ¶
func (x *UnregisterServerRequest) String() string
type UnregisterServerResponse ¶
type UnregisterServerResponse struct {
// contains filtered or unexported fields
}
UnregisterServerResponse is the response for UnregisterServer method.
func (*UnregisterServerResponse) Descriptor
deprecated
func (*UnregisterServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterServerResponse.ProtoReflect.Descriptor instead.
func (*UnregisterServerResponse) ProtoMessage ¶
func (*UnregisterServerResponse) ProtoMessage()
func (*UnregisterServerResponse) ProtoReflect ¶
func (x *UnregisterServerResponse) ProtoReflect() protoreflect.Message
func (*UnregisterServerResponse) Reset ¶
func (x *UnregisterServerResponse) Reset()
func (*UnregisterServerResponse) String ¶
func (x *UnregisterServerResponse) String() string