v1

package
v0.0.0-...-771d5d4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationAdminCreateAdmin = "/nesgo.admin.v1.Admin/CreateAdmin"
View Source
const OperationAdminDeleteGameFiles = "/nesgo.admin.v1.Admin/DeleteGameFiles"
View Source
const OperationAdminGetRoomStats = "/nesgo.admin.v1.Admin/GetRoomStats"
View Source
const OperationAdminListActiveRooms = "/nesgo.admin.v1.Admin/ListActiveRooms"
View Source
const OperationAdminListGames = "/nesgo.admin.v1.Admin/ListGames"
View Source
const OperationAdminListGamingServiceEndpoints = "/nesgo.admin.v1.Admin/ListGamingServiceEndpoints"
View Source
const OperationAdminListRooms = "/nesgo.admin.v1.Admin/ListRooms"
View Source
const OperationAdminLogin = "/nesgo.admin.v1.Admin/Login"

Variables

View Source
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.

View Source
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)

View Source
var File_app_admin_v1_admin_error_proto protoreflect.FileDescriptor
View Source
var File_app_admin_v1_admin_proto protoreflect.FileDescriptor

Functions

func ErrorListActiveRoomsFailed

func ErrorListActiveRoomsFailed(format string, args ...interface{}) *errors.Error

func ErrorLoginFailed

func ErrorLoginFailed(format string, args ...interface{}) *errors.Error

func ErrorUnknownError

func ErrorUnknownError(format string, args ...interface{}) *errors.Error

func ErrorUploadFileError

func ErrorUploadFileError(format string, args ...interface{}) *errors.Error

func IsListActiveRoomsFailed

func IsListActiveRoomsFailed(err error) bool

func IsLoginFailed

func IsLoginFailed(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

func IsUploadFileError

func IsUploadFileError(err error) bool

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 (*AdminHTTPClientImpl) DeleteGameFiles

func (*AdminHTTPClientImpl) GetRoomStats

func (*AdminHTTPClientImpl) ListActiveRooms

func (*AdminHTTPClientImpl) ListGames

func (*AdminHTTPClientImpl) ListGamingServiceEndpoints

func (c *AdminHTTPClientImpl) ListGamingServiceEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...http.CallOption) (*ListEndpointsResponse, error)

func (*AdminHTTPClientImpl) ListRooms

func (*AdminHTTPClientImpl) Login

type AdminServer

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

func (NesgoAdminErrorReasons) EnumDescriptor deprecated

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

Deprecated: Use NesgoAdminErrorReasons.Descriptor instead.

func (NesgoAdminErrorReasons) Number

func (NesgoAdminErrorReasons) String

func (x NesgoAdminErrorReasons) String() string

func (NesgoAdminErrorReasons) Type

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

Deprecated: Use Room.ProtoReflect.Descriptor instead.

func (*Room) GetHost

func (x *Room) GetHost() int64

func (*Room) GetHostName

func (x *Room) GetHostName() string

func (*Room) GetId

func (x *Room) GetId() int64

func (*Room) GetMemberCount

func (x *Room) GetMemberCount() int32

func (*Room) GetMemberLimit

func (x *Room) GetMemberLimit() int32

func (*Room) GetName

func (x *Room) GetName() string

func (*Room) GetPrivate

func (x *Room) GetPrivate() bool

func (*Room) ProtoMessage

func (*Room) ProtoMessage()

func (*Room) ProtoReflect

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

func (*Room) Reset

func (x *Room) Reset()

func (*Room) String

func (x *Room) String() string

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

func (UnimplementedAdminServer) GetRoomStats

func (UnimplementedAdminServer) ListActiveRooms

func (UnimplementedAdminServer) ListGames

func (UnimplementedAdminServer) ListGamingServiceEndpoints

func (UnimplementedAdminServer) ListRooms

func (UnimplementedAdminServer) Login

func (UnimplementedAdminServer) UploadGame

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

Jump to

Keyboard shortcuts

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