Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorListActiveRoomsFailed(format string, args ...interface{}) *errors.Error
- func ErrorLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func ErrorUploadFileError(format string, args ...interface{}) *errors.Error
- func IsListActiveRoomsFailed(err error) bool
- func IsLoginFailed(err error) bool
- func IsUnknownError(err error) bool
- func IsUploadFileError(err error) bool
- func RegisterAdminHTTPServer(s *http.Server, srv AdminHTTPServer)
- func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
- type ActiveRoom
- func (*ActiveRoom) Descriptor() ([]byte, []int)deprecated
- func (x *ActiveRoom) GetActiveConnections() int32
- func (x *ActiveRoom) GetConnections() int32
- func (x *ActiveRoom) GetEndpoint() string
- func (x *ActiveRoom) GetGame() string
- func (x *ActiveRoom) GetHost() int64
- func (x *ActiveRoom) GetHostName() string
- func (x *ActiveRoom) GetMemberCount() int32
- func (x *ActiveRoom) GetMemberLimit() int32
- func (x *ActiveRoom) GetName() string
- func (x *ActiveRoom) GetRoomId() int64
- func (x *ActiveRoom) GetUptime() int64
- func (*ActiveRoom) ProtoMessage()
- func (x *ActiveRoom) ProtoReflect() protoreflect.Message
- func (x *ActiveRoom) Reset()
- func (x *ActiveRoom) String() string
- type AdminClient
- type AdminHTTPClient
- type AdminHTTPClientImpl
- func (c *AdminHTTPClientImpl) CreateAdmin(ctx context.Context, in *CreateAdminRequest, opts ...http.CallOption) (*CreateAdminResponse, error)
- func (c *AdminHTTPClientImpl) DeleteGameFiles(ctx context.Context, in *DeleteGameFileRequest, opts ...http.CallOption) (*DeleteGameFileResponse, error)
- func (c *AdminHTTPClientImpl) GetRoomStats(ctx context.Context, in *GetRoomStatsRequest, opts ...http.CallOption) (*GetRoomStatsResponse, error)
- func (c *AdminHTTPClientImpl) ListActiveRooms(ctx context.Context, in *ListActiveRoomsRequest, opts ...http.CallOption) (*ListActiveRoomsResponse, error)
- func (c *AdminHTTPClientImpl) ListGames(ctx context.Context, in *ListGamesRequest, opts ...http.CallOption) (*ListGamesResponse, error)
- func (c *AdminHTTPClientImpl) ListGamingServiceEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...http.CallOption) (*ListEndpointsResponse, error)
- func (c *AdminHTTPClientImpl) ListRooms(ctx context.Context, in *ListRoomsRequest, opts ...http.CallOption) (*ListRoomsResponse, error)
- func (c *AdminHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
- type AdminHTTPServer
- type AdminServer
- type CreateAdminRequest
- func (*CreateAdminRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdminRequest) GetName() string
- func (x *CreateAdminRequest) GetPassword() string
- func (*CreateAdminRequest) ProtoMessage()
- func (x *CreateAdminRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAdminRequest) Reset()
- func (x *CreateAdminRequest) String() string
- type CreateAdminResponse
- type DeleteGameFileRequest
- func (*DeleteGameFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGameFileRequest) GetGames() []string
- func (*DeleteGameFileRequest) ProtoMessage()
- func (x *DeleteGameFileRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGameFileRequest) Reset()
- func (x *DeleteGameFileRequest) String() string
- type DeleteGameFileResponse
- func (*DeleteGameFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGameFileResponse) GetDeleted() int32
- func (*DeleteGameFileResponse) ProtoMessage()
- func (x *DeleteGameFileResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteGameFileResponse) Reset()
- func (x *DeleteGameFileResponse) String() string
- type GameFileMetadata
- func (*GameFileMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *GameFileMetadata) GetMapper() string
- func (x *GameFileMetadata) GetMirroring() string
- func (x *GameFileMetadata) GetName() string
- func (x *GameFileMetadata) GetSize() int32
- func (x *GameFileMetadata) GetUploadTime() int64
- func (*GameFileMetadata) ProtoMessage()
- func (x *GameFileMetadata) ProtoReflect() protoreflect.Message
- func (x *GameFileMetadata) Reset()
- func (x *GameFileMetadata) String() string
- type GamingServiceEndpoint
- func (*GamingServiceEndpoint) Descriptor() ([]byte, []int)deprecated
- func (x *GamingServiceEndpoint) GetAddress() string
- func (x *GamingServiceEndpoint) GetCpuUsage() int32
- func (x *GamingServiceEndpoint) GetEmulatorCount() int32
- func (x *GamingServiceEndpoint) GetId() string
- func (x *GamingServiceEndpoint) GetMemoryTotal() int64
- func (x *GamingServiceEndpoint) GetMemoryUsed() int64
- func (x *GamingServiceEndpoint) GetUptime() int64
- func (*GamingServiceEndpoint) ProtoMessage()
- func (x *GamingServiceEndpoint) ProtoReflect() protoreflect.Message
- func (x *GamingServiceEndpoint) Reset()
- func (x *GamingServiceEndpoint) String() string
- type GetRoomStatsRequest
- func (*GetRoomStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoomStatsRequest) GetRoomId() int64
- func (*GetRoomStatsRequest) ProtoMessage()
- func (x *GetRoomStatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoomStatsRequest) Reset()
- func (x *GetRoomStatsRequest) String() string
- type GetRoomStatsResponse
- func (*GetRoomStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoomStatsResponse) GetStats() *ActiveRoom
- func (*GetRoomStatsResponse) ProtoMessage()
- func (x *GetRoomStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRoomStatsResponse) Reset()
- func (x *GetRoomStatsResponse) String() string
- type ListActiveRoomsRequest
- func (*ListActiveRoomsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListActiveRoomsRequest) GetId() string
- func (*ListActiveRoomsRequest) ProtoMessage()
- func (x *ListActiveRoomsRequest) ProtoReflect() protoreflect.Message
- func (x *ListActiveRoomsRequest) Reset()
- func (x *ListActiveRoomsRequest) String() string
- type ListActiveRoomsResponse
- func (*ListActiveRoomsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListActiveRoomsResponse) GetRooms() []*ActiveRoom
- func (*ListActiveRoomsResponse) ProtoMessage()
- func (x *ListActiveRoomsResponse) ProtoReflect() protoreflect.Message
- func (x *ListActiveRoomsResponse) Reset()
- func (x *ListActiveRoomsResponse) String() string
- type ListEndpointsRequest
- func (*ListEndpointsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListEndpointsRequest) GetPage() int32
- func (x *ListEndpointsRequest) GetPageSize() int32
- func (*ListEndpointsRequest) ProtoMessage()
- func (x *ListEndpointsRequest) ProtoReflect() protoreflect.Message
- func (x *ListEndpointsRequest) Reset()
- func (x *ListEndpointsRequest) String() string
- type ListEndpointsResponse
- func (*ListEndpointsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEndpointsResponse) GetEndpoints() []*GamingServiceEndpoint
- func (x *ListEndpointsResponse) GetTotal() int32
- func (*ListEndpointsResponse) ProtoMessage()
- func (x *ListEndpointsResponse) ProtoReflect() protoreflect.Message
- func (x *ListEndpointsResponse) Reset()
- func (x *ListEndpointsResponse) String() string
- type ListGamesRequest
- func (*ListGamesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListGamesRequest) GetPage() int32
- func (x *ListGamesRequest) GetPageSize() int32
- func (*ListGamesRequest) ProtoMessage()
- func (x *ListGamesRequest) ProtoReflect() protoreflect.Message
- func (x *ListGamesRequest) Reset()
- func (x *ListGamesRequest) String() string
- type ListGamesResponse
- func (*ListGamesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGamesResponse) GetGames() []*GameFileMetadata
- func (x *ListGamesResponse) GetTotal() int32
- func (*ListGamesResponse) ProtoMessage()
- func (x *ListGamesResponse) ProtoReflect() protoreflect.Message
- func (x *ListGamesResponse) Reset()
- func (x *ListGamesResponse) String() string
- type ListRoomsRequest
- func (*ListRoomsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoomsRequest) GetPage() int32
- func (x *ListRoomsRequest) GetPageSize() int32
- func (*ListRoomsRequest) ProtoMessage()
- func (x *ListRoomsRequest) ProtoReflect() protoreflect.Message
- func (x *ListRoomsRequest) Reset()
- func (x *ListRoomsRequest) String() string
- type ListRoomsResponse
- func (*ListRoomsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoomsResponse) GetRooms() []*Room
- func (x *ListRoomsResponse) GetTotal() int32
- func (*ListRoomsResponse) ProtoMessage()
- func (x *ListRoomsResponse) ProtoReflect() protoreflect.Message
- func (x *ListRoomsResponse) Reset()
- func (x *ListRoomsResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetName() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- type NesgoAdminErrorReasons
- func (NesgoAdminErrorReasons) Descriptor() protoreflect.EnumDescriptor
- func (x NesgoAdminErrorReasons) Enum() *NesgoAdminErrorReasons
- func (NesgoAdminErrorReasons) EnumDescriptor() ([]byte, []int)deprecated
- func (x NesgoAdminErrorReasons) Number() protoreflect.EnumNumber
- func (x NesgoAdminErrorReasons) String() string
- func (NesgoAdminErrorReasons) Type() protoreflect.EnumType
- type Room
- func (*Room) Descriptor() ([]byte, []int)deprecated
- func (x *Room) GetHost() int64
- func (x *Room) GetHostName() string
- func (x *Room) GetId() int64
- func (x *Room) GetMemberCount() int32
- func (x *Room) GetMemberLimit() int32
- func (x *Room) GetName() string
- func (x *Room) GetPrivate() bool
- func (*Room) ProtoMessage()
- func (x *Room) ProtoReflect() protoreflect.Message
- func (x *Room) Reset()
- func (x *Room) String() string
- type UnimplementedAdminServer
- func (UnimplementedAdminServer) CreateAdmin(context.Context, *CreateAdminRequest) (*CreateAdminResponse, error)
- func (UnimplementedAdminServer) DeleteGameFiles(context.Context, *DeleteGameFileRequest) (*DeleteGameFileResponse, error)
- func (UnimplementedAdminServer) GetRoomStats(context.Context, *GetRoomStatsRequest) (*GetRoomStatsResponse, error)
- func (UnimplementedAdminServer) ListActiveRooms(context.Context, *ListActiveRoomsRequest) (*ListActiveRoomsResponse, error)
- func (UnimplementedAdminServer) ListGames(context.Context, *ListGamesRequest) (*ListGamesResponse, error)
- func (UnimplementedAdminServer) ListGamingServiceEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error)
- func (UnimplementedAdminServer) ListRooms(context.Context, *ListRoomsRequest) (*ListRoomsResponse, error)
- func (UnimplementedAdminServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAdminServer) UploadGame(context.Context, *UploadFileRequest) (*UploadFileResponse, error)
- type UnsafeAdminServer
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetData() []byte
- func (x *UploadFileRequest) GetName() string
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileResponse
Constants ¶
const ( Admin_UploadGame_FullMethodName = "/nesgo.admin.v1.Admin/UploadGame" Admin_ListGames_FullMethodName = "/nesgo.admin.v1.Admin/ListGames" Admin_DeleteGameFiles_FullMethodName = "/nesgo.admin.v1.Admin/DeleteGameFiles" Admin_Login_FullMethodName = "/nesgo.admin.v1.Admin/Login" Admin_CreateAdmin_FullMethodName = "/nesgo.admin.v1.Admin/CreateAdmin" Admin_ListGamingServiceEndpoints_FullMethodName = "/nesgo.admin.v1.Admin/ListGamingServiceEndpoints" Admin_ListActiveRooms_FullMethodName = "/nesgo.admin.v1.Admin/ListActiveRooms" Admin_ListRooms_FullMethodName = "/nesgo.admin.v1.Admin/ListRooms" Admin_GetRoomStats_FullMethodName = "/nesgo.admin.v1.Admin/GetRoomStats" )
const OperationAdminCreateAdmin = "/nesgo.admin.v1.Admin/CreateAdmin"
const OperationAdminDeleteGameFiles = "/nesgo.admin.v1.Admin/DeleteGameFiles"
const OperationAdminGetRoomStats = "/nesgo.admin.v1.Admin/GetRoomStats"
const OperationAdminListActiveRooms = "/nesgo.admin.v1.Admin/ListActiveRooms"
const OperationAdminListGames = "/nesgo.admin.v1.Admin/ListGames"
const OperationAdminListGamingServiceEndpoints = "/nesgo.admin.v1.Admin/ListGamingServiceEndpoints"
const OperationAdminListRooms = "/nesgo.admin.v1.Admin/ListRooms"
const OperationAdminLogin = "/nesgo.admin.v1.Admin/Login"
Variables ¶
var ( NesgoAdminErrorReasons_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "UPLOAD_FILE_ERROR", 2: "LOGIN_FAILED", 3: "LIST_ACTIVE_ROOMS_FAILED", } NesgoAdminErrorReasons_value = map[string]int32{ "UNKNOWN_ERROR": 0, "UPLOAD_FILE_ERROR": 1, "LOGIN_FAILED": 2, "LIST_ACTIVE_ROOMS_FAILED": 3, } )
Enum value maps for NesgoAdminErrorReasons.
var Admin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nesgo.admin.v1.Admin", HandlerType: (*AdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UploadGame", Handler: _Admin_UploadGame_Handler, }, { MethodName: "ListGames", Handler: _Admin_ListGames_Handler, }, { MethodName: "DeleteGameFiles", Handler: _Admin_DeleteGameFiles_Handler, }, { MethodName: "Login", Handler: _Admin_Login_Handler, }, { MethodName: "CreateAdmin", Handler: _Admin_CreateAdmin_Handler, }, { MethodName: "ListGamingServiceEndpoints", Handler: _Admin_ListGamingServiceEndpoints_Handler, }, { MethodName: "ListActiveRooms", Handler: _Admin_ListActiveRooms_Handler, }, { MethodName: "ListRooms", Handler: _Admin_ListRooms_Handler, }, { MethodName: "GetRoomStats", Handler: _Admin_GetRoomStats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "app/admin/v1/admin.proto", }
Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_app_admin_v1_admin_error_proto protoreflect.FileDescriptor
var File_app_admin_v1_admin_proto protoreflect.FileDescriptor
Functions ¶
func ErrorLoginFailed ¶
func ErrorUnknownError ¶
func ErrorUploadFileError ¶
func IsListActiveRoomsFailed ¶
func IsLoginFailed ¶
func IsUnknownError ¶
func IsUploadFileError ¶
func RegisterAdminHTTPServer ¶
func RegisterAdminHTTPServer(s *http.Server, srv AdminHTTPServer)
func RegisterAdminServer ¶
func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
Types ¶
type ActiveRoom ¶
type ActiveRoom struct { RoomId int64 `protobuf:"varint,1,opt,name=roomId,proto3" json:"roomId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Host int64 `protobuf:"varint,3,opt,name=host,proto3" json:"host,omitempty"` HostName string `protobuf:"bytes,4,opt,name=hostName,proto3" json:"hostName,omitempty"` MemberCount int32 `protobuf:"varint,5,opt,name=memberCount,proto3" json:"memberCount,omitempty"` MemberLimit int32 `protobuf:"varint,6,opt,name=memberLimit,proto3" json:"memberLimit,omitempty"` Endpoint string `protobuf:"bytes,7,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Connections int32 `protobuf:"varint,8,opt,name=connections,proto3" json:"connections,omitempty"` ActiveConnections int32 `protobuf:"varint,9,opt,name=activeConnections,proto3" json:"activeConnections,omitempty"` Game string `protobuf:"bytes,10,opt,name=game,proto3" json:"game,omitempty"` Uptime int64 `protobuf:"varint,11,opt,name=uptime,proto3" json:"uptime,omitempty"` // contains filtered or unexported fields }
func (*ActiveRoom) Descriptor
deprecated
func (*ActiveRoom) Descriptor() ([]byte, []int)
Deprecated: Use ActiveRoom.ProtoReflect.Descriptor instead.
func (*ActiveRoom) GetActiveConnections ¶
func (x *ActiveRoom) GetActiveConnections() int32
func (*ActiveRoom) GetConnections ¶
func (x *ActiveRoom) GetConnections() int32
func (*ActiveRoom) GetEndpoint ¶
func (x *ActiveRoom) GetEndpoint() string
func (*ActiveRoom) GetGame ¶
func (x *ActiveRoom) GetGame() string
func (*ActiveRoom) GetHost ¶
func (x *ActiveRoom) GetHost() int64
func (*ActiveRoom) GetHostName ¶
func (x *ActiveRoom) GetHostName() string
func (*ActiveRoom) GetMemberCount ¶
func (x *ActiveRoom) GetMemberCount() int32
func (*ActiveRoom) GetMemberLimit ¶
func (x *ActiveRoom) GetMemberLimit() int32
func (*ActiveRoom) GetName ¶
func (x *ActiveRoom) GetName() string
func (*ActiveRoom) GetRoomId ¶
func (x *ActiveRoom) GetRoomId() int64
func (*ActiveRoom) GetUptime ¶
func (x *ActiveRoom) GetUptime() int64
func (*ActiveRoom) ProtoMessage ¶
func (*ActiveRoom) ProtoMessage()
func (*ActiveRoom) ProtoReflect ¶
func (x *ActiveRoom) ProtoReflect() protoreflect.Message
func (*ActiveRoom) Reset ¶
func (x *ActiveRoom) Reset()
func (*ActiveRoom) String ¶
func (x *ActiveRoom) String() string
type AdminClient ¶
type AdminClient interface { UploadGame(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileResponse, error) ListGames(ctx context.Context, in *ListGamesRequest, opts ...grpc.CallOption) (*ListGamesResponse, error) DeleteGameFiles(ctx context.Context, in *DeleteGameFileRequest, opts ...grpc.CallOption) (*DeleteGameFileResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) CreateAdmin(ctx context.Context, in *CreateAdminRequest, opts ...grpc.CallOption) (*CreateAdminResponse, error) ListGamingServiceEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...grpc.CallOption) (*ListEndpointsResponse, error) ListActiveRooms(ctx context.Context, in *ListActiveRoomsRequest, opts ...grpc.CallOption) (*ListActiveRoomsResponse, error) ListRooms(ctx context.Context, in *ListRoomsRequest, opts ...grpc.CallOption) (*ListRoomsResponse, error) GetRoomStats(ctx context.Context, in *GetRoomStatsRequest, opts ...grpc.CallOption) (*GetRoomStatsResponse, 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 AdminHTTPClient ¶
type AdminHTTPClient interface { CreateAdmin(ctx context.Context, req *CreateAdminRequest, opts ...http.CallOption) (rsp *CreateAdminResponse, err error) DeleteGameFiles(ctx context.Context, req *DeleteGameFileRequest, opts ...http.CallOption) (rsp *DeleteGameFileResponse, err error) GetRoomStats(ctx context.Context, req *GetRoomStatsRequest, opts ...http.CallOption) (rsp *GetRoomStatsResponse, err error) ListActiveRooms(ctx context.Context, req *ListActiveRoomsRequest, opts ...http.CallOption) (rsp *ListActiveRoomsResponse, err error) ListGames(ctx context.Context, req *ListGamesRequest, opts ...http.CallOption) (rsp *ListGamesResponse, err error) ListGamingServiceEndpoints(ctx context.Context, req *ListEndpointsRequest, opts ...http.CallOption) (rsp *ListEndpointsResponse, err error) ListRooms(ctx context.Context, req *ListRoomsRequest, opts ...http.CallOption) (rsp *ListRoomsResponse, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginResponse, err error) }
func NewAdminHTTPClient ¶
func NewAdminHTTPClient(client *http.Client) AdminHTTPClient
type AdminHTTPClientImpl ¶
type AdminHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AdminHTTPClientImpl) CreateAdmin ¶
func (c *AdminHTTPClientImpl) CreateAdmin(ctx context.Context, in *CreateAdminRequest, opts ...http.CallOption) (*CreateAdminResponse, error)
func (*AdminHTTPClientImpl) DeleteGameFiles ¶
func (c *AdminHTTPClientImpl) DeleteGameFiles(ctx context.Context, in *DeleteGameFileRequest, opts ...http.CallOption) (*DeleteGameFileResponse, error)
func (*AdminHTTPClientImpl) GetRoomStats ¶
func (c *AdminHTTPClientImpl) GetRoomStats(ctx context.Context, in *GetRoomStatsRequest, opts ...http.CallOption) (*GetRoomStatsResponse, error)
func (*AdminHTTPClientImpl) ListActiveRooms ¶
func (c *AdminHTTPClientImpl) ListActiveRooms(ctx context.Context, in *ListActiveRoomsRequest, opts ...http.CallOption) (*ListActiveRoomsResponse, error)
func (*AdminHTTPClientImpl) ListGames ¶
func (c *AdminHTTPClientImpl) ListGames(ctx context.Context, in *ListGamesRequest, opts ...http.CallOption) (*ListGamesResponse, error)
func (*AdminHTTPClientImpl) ListGamingServiceEndpoints ¶
func (c *AdminHTTPClientImpl) ListGamingServiceEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...http.CallOption) (*ListEndpointsResponse, error)
func (*AdminHTTPClientImpl) ListRooms ¶
func (c *AdminHTTPClientImpl) ListRooms(ctx context.Context, in *ListRoomsRequest, opts ...http.CallOption) (*ListRoomsResponse, error)
func (*AdminHTTPClientImpl) Login ¶
func (c *AdminHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
type AdminHTTPServer ¶
type AdminHTTPServer interface { CreateAdmin(context.Context, *CreateAdminRequest) (*CreateAdminResponse, error) DeleteGameFiles(context.Context, *DeleteGameFileRequest) (*DeleteGameFileResponse, error) GetRoomStats(context.Context, *GetRoomStatsRequest) (*GetRoomStatsResponse, error) ListActiveRooms(context.Context, *ListActiveRoomsRequest) (*ListActiveRoomsResponse, error) ListGames(context.Context, *ListGamesRequest) (*ListGamesResponse, error) ListGamingServiceEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error) ListRooms(context.Context, *ListRoomsRequest) (*ListRoomsResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) }
type AdminServer ¶
type AdminServer interface { UploadGame(context.Context, *UploadFileRequest) (*UploadFileResponse, error) ListGames(context.Context, *ListGamesRequest) (*ListGamesResponse, error) DeleteGameFiles(context.Context, *DeleteGameFileRequest) (*DeleteGameFileResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) CreateAdmin(context.Context, *CreateAdminRequest) (*CreateAdminResponse, error) ListGamingServiceEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error) ListActiveRooms(context.Context, *ListActiveRoomsRequest) (*ListActiveRoomsResponse, error) ListRooms(context.Context, *ListRoomsRequest) (*ListRoomsResponse, error) GetRoomStats(context.Context, *GetRoomStatsRequest) (*GetRoomStatsResponse, error) // contains filtered or unexported methods }
AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility.
type CreateAdminRequest ¶
type CreateAdminRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateAdminRequest) Descriptor
deprecated
func (*CreateAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdminRequest.ProtoReflect.Descriptor instead.
func (*CreateAdminRequest) GetName ¶
func (x *CreateAdminRequest) GetName() string
func (*CreateAdminRequest) GetPassword ¶
func (x *CreateAdminRequest) GetPassword() string
func (*CreateAdminRequest) ProtoMessage ¶
func (*CreateAdminRequest) ProtoMessage()
func (*CreateAdminRequest) ProtoReflect ¶
func (x *CreateAdminRequest) ProtoReflect() protoreflect.Message
func (*CreateAdminRequest) Reset ¶
func (x *CreateAdminRequest) Reset()
func (*CreateAdminRequest) String ¶
func (x *CreateAdminRequest) String() string
type CreateAdminResponse ¶
type CreateAdminResponse struct {
// contains filtered or unexported fields
}
func (*CreateAdminResponse) Descriptor
deprecated
func (*CreateAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdminResponse.ProtoReflect.Descriptor instead.
func (*CreateAdminResponse) ProtoMessage ¶
func (*CreateAdminResponse) ProtoMessage()
func (*CreateAdminResponse) ProtoReflect ¶
func (x *CreateAdminResponse) ProtoReflect() protoreflect.Message
func (*CreateAdminResponse) Reset ¶
func (x *CreateAdminResponse) Reset()
func (*CreateAdminResponse) String ¶
func (x *CreateAdminResponse) String() string
type DeleteGameFileRequest ¶
type DeleteGameFileRequest struct { Games []string `protobuf:"bytes,1,rep,name=games,proto3" json:"games,omitempty"` // contains filtered or unexported fields }
func (*DeleteGameFileRequest) Descriptor
deprecated
func (*DeleteGameFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGameFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteGameFileRequest) GetGames ¶
func (x *DeleteGameFileRequest) GetGames() []string
func (*DeleteGameFileRequest) ProtoMessage ¶
func (*DeleteGameFileRequest) ProtoMessage()
func (*DeleteGameFileRequest) ProtoReflect ¶
func (x *DeleteGameFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteGameFileRequest) Reset ¶
func (x *DeleteGameFileRequest) Reset()
func (*DeleteGameFileRequest) String ¶
func (x *DeleteGameFileRequest) String() string
type DeleteGameFileResponse ¶
type DeleteGameFileResponse struct { Deleted int32 `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"` // contains filtered or unexported fields }
func (*DeleteGameFileResponse) Descriptor
deprecated
func (*DeleteGameFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGameFileResponse.ProtoReflect.Descriptor instead.
func (*DeleteGameFileResponse) GetDeleted ¶
func (x *DeleteGameFileResponse) GetDeleted() int32
func (*DeleteGameFileResponse) ProtoMessage ¶
func (*DeleteGameFileResponse) ProtoMessage()
func (*DeleteGameFileResponse) ProtoReflect ¶
func (x *DeleteGameFileResponse) ProtoReflect() protoreflect.Message
func (*DeleteGameFileResponse) Reset ¶
func (x *DeleteGameFileResponse) Reset()
func (*DeleteGameFileResponse) String ¶
func (x *DeleteGameFileResponse) String() string
type GameFileMetadata ¶
type GameFileMetadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mapper string `protobuf:"bytes,2,opt,name=mapper,proto3" json:"mapper,omitempty"` Mirroring string `protobuf:"bytes,3,opt,name=mirroring,proto3" json:"mirroring,omitempty"` Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` UploadTime int64 `protobuf:"varint,5,opt,name=uploadTime,proto3" json:"uploadTime,omitempty"` // contains filtered or unexported fields }
func (*GameFileMetadata) Descriptor
deprecated
func (*GameFileMetadata) Descriptor() ([]byte, []int)
Deprecated: Use GameFileMetadata.ProtoReflect.Descriptor instead.
func (*GameFileMetadata) GetMapper ¶
func (x *GameFileMetadata) GetMapper() string
func (*GameFileMetadata) GetMirroring ¶
func (x *GameFileMetadata) GetMirroring() string
func (*GameFileMetadata) GetName ¶
func (x *GameFileMetadata) GetName() string
func (*GameFileMetadata) GetSize ¶
func (x *GameFileMetadata) GetSize() int32
func (*GameFileMetadata) GetUploadTime ¶
func (x *GameFileMetadata) GetUploadTime() int64
func (*GameFileMetadata) ProtoMessage ¶
func (*GameFileMetadata) ProtoMessage()
func (*GameFileMetadata) ProtoReflect ¶
func (x *GameFileMetadata) ProtoReflect() protoreflect.Message
func (*GameFileMetadata) Reset ¶
func (x *GameFileMetadata) Reset()
func (*GameFileMetadata) String ¶
func (x *GameFileMetadata) String() string
type GamingServiceEndpoint ¶
type GamingServiceEndpoint struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` EmulatorCount int32 `protobuf:"varint,3,opt,name=emulatorCount,proto3" json:"emulatorCount,omitempty"` CpuUsage int32 `protobuf:"varint,4,opt,name=cpuUsage,proto3" json:"cpuUsage,omitempty"` MemoryUsed int64 `protobuf:"varint,5,opt,name=memoryUsed,proto3" json:"memoryUsed,omitempty"` MemoryTotal int64 `protobuf:"varint,6,opt,name=memoryTotal,proto3" json:"memoryTotal,omitempty"` Uptime int64 `protobuf:"varint,7,opt,name=uptime,proto3" json:"uptime,omitempty"` // contains filtered or unexported fields }
func (*GamingServiceEndpoint) Descriptor
deprecated
func (*GamingServiceEndpoint) Descriptor() ([]byte, []int)
Deprecated: Use GamingServiceEndpoint.ProtoReflect.Descriptor instead.
func (*GamingServiceEndpoint) GetAddress ¶
func (x *GamingServiceEndpoint) GetAddress() string
func (*GamingServiceEndpoint) GetCpuUsage ¶
func (x *GamingServiceEndpoint) GetCpuUsage() int32
func (*GamingServiceEndpoint) GetEmulatorCount ¶
func (x *GamingServiceEndpoint) GetEmulatorCount() int32
func (*GamingServiceEndpoint) GetId ¶
func (x *GamingServiceEndpoint) GetId() string
func (*GamingServiceEndpoint) GetMemoryTotal ¶
func (x *GamingServiceEndpoint) GetMemoryTotal() int64
func (*GamingServiceEndpoint) GetMemoryUsed ¶
func (x *GamingServiceEndpoint) GetMemoryUsed() int64
func (*GamingServiceEndpoint) GetUptime ¶
func (x *GamingServiceEndpoint) GetUptime() int64
func (*GamingServiceEndpoint) ProtoMessage ¶
func (*GamingServiceEndpoint) ProtoMessage()
func (*GamingServiceEndpoint) ProtoReflect ¶
func (x *GamingServiceEndpoint) ProtoReflect() protoreflect.Message
func (*GamingServiceEndpoint) Reset ¶
func (x *GamingServiceEndpoint) Reset()
func (*GamingServiceEndpoint) String ¶
func (x *GamingServiceEndpoint) String() string
type GetRoomStatsRequest ¶
type GetRoomStatsRequest struct { RoomId int64 `protobuf:"varint,1,opt,name=roomId,proto3" json:"roomId,omitempty"` // contains filtered or unexported fields }
func (*GetRoomStatsRequest) Descriptor
deprecated
func (*GetRoomStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoomStatsRequest.ProtoReflect.Descriptor instead.
func (*GetRoomStatsRequest) GetRoomId ¶
func (x *GetRoomStatsRequest) GetRoomId() int64
func (*GetRoomStatsRequest) ProtoMessage ¶
func (*GetRoomStatsRequest) ProtoMessage()
func (*GetRoomStatsRequest) ProtoReflect ¶
func (x *GetRoomStatsRequest) ProtoReflect() protoreflect.Message
func (*GetRoomStatsRequest) Reset ¶
func (x *GetRoomStatsRequest) Reset()
func (*GetRoomStatsRequest) String ¶
func (x *GetRoomStatsRequest) String() string
type GetRoomStatsResponse ¶
type GetRoomStatsResponse struct { Stats *ActiveRoom `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*GetRoomStatsResponse) Descriptor
deprecated
func (*GetRoomStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoomStatsResponse.ProtoReflect.Descriptor instead.
func (*GetRoomStatsResponse) GetStats ¶
func (x *GetRoomStatsResponse) GetStats() *ActiveRoom
func (*GetRoomStatsResponse) ProtoMessage ¶
func (*GetRoomStatsResponse) ProtoMessage()
func (*GetRoomStatsResponse) ProtoReflect ¶
func (x *GetRoomStatsResponse) ProtoReflect() protoreflect.Message
func (*GetRoomStatsResponse) Reset ¶
func (x *GetRoomStatsResponse) Reset()
func (*GetRoomStatsResponse) String ¶
func (x *GetRoomStatsResponse) String() string
type ListActiveRoomsRequest ¶
type ListActiveRoomsRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ListActiveRoomsRequest) Descriptor
deprecated
func (*ListActiveRoomsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListActiveRoomsRequest.ProtoReflect.Descriptor instead.
func (*ListActiveRoomsRequest) GetId ¶
func (x *ListActiveRoomsRequest) GetId() string
func (*ListActiveRoomsRequest) ProtoMessage ¶
func (*ListActiveRoomsRequest) ProtoMessage()
func (*ListActiveRoomsRequest) ProtoReflect ¶
func (x *ListActiveRoomsRequest) ProtoReflect() protoreflect.Message
func (*ListActiveRoomsRequest) Reset ¶
func (x *ListActiveRoomsRequest) Reset()
func (*ListActiveRoomsRequest) String ¶
func (x *ListActiveRoomsRequest) String() string
type ListActiveRoomsResponse ¶
type ListActiveRoomsResponse struct { Rooms []*ActiveRoom `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"` // contains filtered or unexported fields }
func (*ListActiveRoomsResponse) Descriptor
deprecated
func (*ListActiveRoomsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListActiveRoomsResponse.ProtoReflect.Descriptor instead.
func (*ListActiveRoomsResponse) GetRooms ¶
func (x *ListActiveRoomsResponse) GetRooms() []*ActiveRoom
func (*ListActiveRoomsResponse) ProtoMessage ¶
func (*ListActiveRoomsResponse) ProtoMessage()
func (*ListActiveRoomsResponse) ProtoReflect ¶
func (x *ListActiveRoomsResponse) ProtoReflect() protoreflect.Message
func (*ListActiveRoomsResponse) Reset ¶
func (x *ListActiveRoomsResponse) Reset()
func (*ListActiveRoomsResponse) String ¶
func (x *ListActiveRoomsResponse) String() string
type ListEndpointsRequest ¶
type ListEndpointsRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*ListEndpointsRequest) Descriptor
deprecated
func (*ListEndpointsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointsRequest.ProtoReflect.Descriptor instead.
func (*ListEndpointsRequest) GetPage ¶
func (x *ListEndpointsRequest) GetPage() int32
func (*ListEndpointsRequest) GetPageSize ¶
func (x *ListEndpointsRequest) GetPageSize() int32
func (*ListEndpointsRequest) ProtoMessage ¶
func (*ListEndpointsRequest) ProtoMessage()
func (*ListEndpointsRequest) ProtoReflect ¶
func (x *ListEndpointsRequest) ProtoReflect() protoreflect.Message
func (*ListEndpointsRequest) Reset ¶
func (x *ListEndpointsRequest) Reset()
func (*ListEndpointsRequest) String ¶
func (x *ListEndpointsRequest) String() string
type ListEndpointsResponse ¶
type ListEndpointsResponse struct { Endpoints []*GamingServiceEndpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListEndpointsResponse) Descriptor
deprecated
func (*ListEndpointsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointsResponse.ProtoReflect.Descriptor instead.
func (*ListEndpointsResponse) GetEndpoints ¶
func (x *ListEndpointsResponse) GetEndpoints() []*GamingServiceEndpoint
func (*ListEndpointsResponse) GetTotal ¶
func (x *ListEndpointsResponse) GetTotal() int32
func (*ListEndpointsResponse) ProtoMessage ¶
func (*ListEndpointsResponse) ProtoMessage()
func (*ListEndpointsResponse) ProtoReflect ¶
func (x *ListEndpointsResponse) ProtoReflect() protoreflect.Message
func (*ListEndpointsResponse) Reset ¶
func (x *ListEndpointsResponse) Reset()
func (*ListEndpointsResponse) String ¶
func (x *ListEndpointsResponse) String() string
type ListGamesRequest ¶
type ListGamesRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*ListGamesRequest) Descriptor
deprecated
func (*ListGamesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGamesRequest.ProtoReflect.Descriptor instead.
func (*ListGamesRequest) GetPage ¶
func (x *ListGamesRequest) GetPage() int32
func (*ListGamesRequest) GetPageSize ¶
func (x *ListGamesRequest) GetPageSize() int32
func (*ListGamesRequest) ProtoMessage ¶
func (*ListGamesRequest) ProtoMessage()
func (*ListGamesRequest) ProtoReflect ¶
func (x *ListGamesRequest) ProtoReflect() protoreflect.Message
func (*ListGamesRequest) Reset ¶
func (x *ListGamesRequest) Reset()
func (*ListGamesRequest) String ¶
func (x *ListGamesRequest) String() string
type ListGamesResponse ¶
type ListGamesResponse struct { Games []*GameFileMetadata `protobuf:"bytes,1,rep,name=games,proto3" json:"games,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListGamesResponse) Descriptor
deprecated
func (*ListGamesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGamesResponse.ProtoReflect.Descriptor instead.
func (*ListGamesResponse) GetGames ¶
func (x *ListGamesResponse) GetGames() []*GameFileMetadata
func (*ListGamesResponse) GetTotal ¶
func (x *ListGamesResponse) GetTotal() int32
func (*ListGamesResponse) ProtoMessage ¶
func (*ListGamesResponse) ProtoMessage()
func (*ListGamesResponse) ProtoReflect ¶
func (x *ListGamesResponse) ProtoReflect() protoreflect.Message
func (*ListGamesResponse) Reset ¶
func (x *ListGamesResponse) Reset()
func (*ListGamesResponse) String ¶
func (x *ListGamesResponse) String() string
type ListRoomsRequest ¶
type ListRoomsRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*ListRoomsRequest) Descriptor
deprecated
func (*ListRoomsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRoomsRequest.ProtoReflect.Descriptor instead.
func (*ListRoomsRequest) GetPage ¶
func (x *ListRoomsRequest) GetPage() int32
func (*ListRoomsRequest) GetPageSize ¶
func (x *ListRoomsRequest) GetPageSize() int32
func (*ListRoomsRequest) ProtoMessage ¶
func (*ListRoomsRequest) ProtoMessage()
func (*ListRoomsRequest) ProtoReflect ¶
func (x *ListRoomsRequest) ProtoReflect() protoreflect.Message
func (*ListRoomsRequest) Reset ¶
func (x *ListRoomsRequest) Reset()
func (*ListRoomsRequest) String ¶
func (x *ListRoomsRequest) String() string
type ListRoomsResponse ¶
type ListRoomsResponse struct { Rooms []*Room `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListRoomsResponse) Descriptor
deprecated
func (*ListRoomsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRoomsResponse.ProtoReflect.Descriptor instead.
func (*ListRoomsResponse) GetRooms ¶
func (x *ListRoomsResponse) GetRooms() []*Room
func (*ListRoomsResponse) GetTotal ¶
func (x *ListRoomsResponse) GetTotal() int32
func (*ListRoomsResponse) ProtoMessage ¶
func (*ListRoomsResponse) ProtoMessage()
func (*ListRoomsResponse) ProtoReflect ¶
func (x *ListRoomsResponse) ProtoReflect() protoreflect.Message
func (*ListRoomsResponse) Reset ¶
func (x *ListRoomsResponse) Reset()
func (*ListRoomsResponse) String ¶
func (x *ListRoomsResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetName ¶
func (x *LoginRequest) GetName() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type NesgoAdminErrorReasons ¶
type NesgoAdminErrorReasons int32
const ( NesgoAdminErrorReasons_UNKNOWN_ERROR NesgoAdminErrorReasons = 0 NesgoAdminErrorReasons_UPLOAD_FILE_ERROR NesgoAdminErrorReasons = 1 NesgoAdminErrorReasons_LOGIN_FAILED NesgoAdminErrorReasons = 2 NesgoAdminErrorReasons_LIST_ACTIVE_ROOMS_FAILED NesgoAdminErrorReasons = 3 )
func (NesgoAdminErrorReasons) Descriptor ¶
func (NesgoAdminErrorReasons) Descriptor() protoreflect.EnumDescriptor
func (NesgoAdminErrorReasons) Enum ¶
func (x NesgoAdminErrorReasons) Enum() *NesgoAdminErrorReasons
func (NesgoAdminErrorReasons) EnumDescriptor
deprecated
func (NesgoAdminErrorReasons) EnumDescriptor() ([]byte, []int)
Deprecated: Use NesgoAdminErrorReasons.Descriptor instead.
func (NesgoAdminErrorReasons) Number ¶
func (x NesgoAdminErrorReasons) Number() protoreflect.EnumNumber
func (NesgoAdminErrorReasons) String ¶
func (x NesgoAdminErrorReasons) String() string
func (NesgoAdminErrorReasons) Type ¶
func (NesgoAdminErrorReasons) Type() protoreflect.EnumType
type Room ¶
type Room struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Host int64 `protobuf:"varint,3,opt,name=host,proto3" json:"host,omitempty"` HostName string `protobuf:"bytes,4,opt,name=hostName,proto3" json:"hostName,omitempty"` MemberCount int32 `protobuf:"varint,5,opt,name=memberCount,proto3" json:"memberCount,omitempty"` MemberLimit int32 `protobuf:"varint,6,opt,name=memberLimit,proto3" json:"memberLimit,omitempty"` Private bool `protobuf:"varint,7,opt,name=private,proto3" json:"private,omitempty"` // contains filtered or unexported fields }
func (*Room) Descriptor
deprecated
func (*Room) GetHostName ¶
func (*Room) GetMemberCount ¶
func (*Room) GetMemberLimit ¶
func (*Room) GetPrivate ¶
func (*Room) ProtoMessage ¶
func (*Room) ProtoMessage()
func (*Room) ProtoReflect ¶
func (x *Room) ProtoReflect() protoreflect.Message
type UnimplementedAdminServer ¶
type UnimplementedAdminServer struct{}
UnimplementedAdminServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAdminServer) CreateAdmin ¶
func (UnimplementedAdminServer) CreateAdmin(context.Context, *CreateAdminRequest) (*CreateAdminResponse, error)
func (UnimplementedAdminServer) DeleteGameFiles ¶
func (UnimplementedAdminServer) DeleteGameFiles(context.Context, *DeleteGameFileRequest) (*DeleteGameFileResponse, error)
func (UnimplementedAdminServer) GetRoomStats ¶
func (UnimplementedAdminServer) GetRoomStats(context.Context, *GetRoomStatsRequest) (*GetRoomStatsResponse, error)
func (UnimplementedAdminServer) ListActiveRooms ¶
func (UnimplementedAdminServer) ListActiveRooms(context.Context, *ListActiveRoomsRequest) (*ListActiveRoomsResponse, error)
func (UnimplementedAdminServer) ListGames ¶
func (UnimplementedAdminServer) ListGames(context.Context, *ListGamesRequest) (*ListGamesResponse, error)
func (UnimplementedAdminServer) ListGamingServiceEndpoints ¶
func (UnimplementedAdminServer) ListGamingServiceEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error)
func (UnimplementedAdminServer) ListRooms ¶
func (UnimplementedAdminServer) ListRooms(context.Context, *ListRoomsRequest) (*ListRoomsResponse, error)
func (UnimplementedAdminServer) Login ¶
func (UnimplementedAdminServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAdminServer) UploadGame ¶
func (UnimplementedAdminServer) UploadGame(context.Context, *UploadFileRequest) (*UploadFileResponse, error)
type UnsafeAdminServer ¶
type UnsafeAdminServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.
type UploadFileRequest ¶
type UploadFileRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetData ¶
func (x *UploadFileRequest) GetData() []byte
func (*UploadFileRequest) GetName ¶
func (x *UploadFileRequest) GetName() string
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
type UploadFileResponse ¶
type UploadFileResponse struct {
// contains filtered or unexported fields
}
func (*UploadFileResponse) Descriptor
deprecated
func (*UploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) ProtoMessage ¶
func (*UploadFileResponse) ProtoMessage()
func (*UploadFileResponse) ProtoReflect ¶
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
func (*UploadFileResponse) Reset ¶
func (x *UploadFileResponse) Reset()
func (*UploadFileResponse) String ¶
func (x *UploadFileResponse) String() string