Documentation ¶
Index ¶
- Variables
- type GameID
- type GameResult
- type GameSession
- func (*GameSession) Descriptor() ([]byte, []int)deprecated
- func (x *GameSession) GetFinishedAt() *timestamppb.Timestamp
- func (x *GameSession) GetGameId() GameID
- func (x *GameSession) GetPayout() int64
- func (x *GameSession) GetResult() GameResult
- func (x *GameSession) GetSessionId() string
- func (x *GameSession) GetStartedAt() *timestamppb.Timestamp
- func (x *GameSession) GetStatus() GameStatus
- func (x *GameSession) GetWager() int64
- func (*GameSession) ProtoMessage()
- func (x *GameSession) ProtoReflect() protoreflect.Message
- func (x *GameSession) Reset()
- func (x *GameSession) String() string
- type GameStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GameID_name = map[int32]string{ 0: "GAME_ID_UNSPECIFIED", 1: "GAME_ID_SOLITAIRE", 2: "GAME_ID_BLACKJACK", 3: "GAME_ID_JANKEN", } GameID_value = map[string]int32{ "GAME_ID_UNSPECIFIED": 0, "GAME_ID_SOLITAIRE": 1, "GAME_ID_BLACKJACK": 2, "GAME_ID_JANKEN": 3, } )
Enum value maps for GameID.
View Source
var ( GameStatus_name = map[int32]string{ 0: "GAME_STATUS_UNSPECIFIED", 1: "GAME_STATUS_PLAYING", 2: "GAME_STATUS_FINISHED", } GameStatus_value = map[string]int32{ "GAME_STATUS_UNSPECIFIED": 0, "GAME_STATUS_PLAYING": 1, "GAME_STATUS_FINISHED": 2, } )
Enum value maps for GameStatus.
View Source
var ( GameResult_name = map[int32]string{ 0: "GAME_RESULT_UNSPECIFIED", 1: "GAME_RESULT_WIN", 2: "GAME_RESULT_LOSE", 3: "GAME_RESULT_DRAW", } GameResult_value = map[string]int32{ "GAME_RESULT_UNSPECIFIED": 0, "GAME_RESULT_WIN": 1, "GAME_RESULT_LOSE": 2, "GAME_RESULT_DRAW": 3, } )
Enum value maps for GameResult.
View Source
var File_resource_game_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GameID ¶
type GameID int32
func (GameID) Descriptor ¶
func (GameID) Descriptor() protoreflect.EnumDescriptor
func (GameID) EnumDescriptor
deprecated
func (GameID) Number ¶
func (x GameID) Number() protoreflect.EnumNumber
func (GameID) Type ¶
func (GameID) Type() protoreflect.EnumType
type GameResult ¶
type GameResult int32
const ( GameResult_GAME_RESULT_UNSPECIFIED GameResult = 0 GameResult_GAME_RESULT_WIN GameResult = 1 GameResult_GAME_RESULT_LOSE GameResult = 2 GameResult_GAME_RESULT_DRAW GameResult = 3 )
func (GameResult) Descriptor ¶
func (GameResult) Descriptor() protoreflect.EnumDescriptor
func (GameResult) Enum ¶
func (x GameResult) Enum() *GameResult
func (GameResult) EnumDescriptor
deprecated
func (GameResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use GameResult.Descriptor instead.
func (GameResult) Number ¶
func (x GameResult) Number() protoreflect.EnumNumber
func (GameResult) String ¶
func (x GameResult) String() string
func (GameResult) Type ¶
func (GameResult) Type() protoreflect.EnumType
type GameSession ¶
type GameSession struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` GameId GameID `protobuf:"varint,2,opt,name=game_id,json=gameId,proto3,enum=resource.GameID" json:"game_id,omitempty"` Status GameStatus `protobuf:"varint,3,opt,name=status,proto3,enum=resource.GameStatus" json:"status,omitempty"` Result GameResult `protobuf:"varint,4,opt,name=result,proto3,enum=resource.GameResult" json:"result,omitempty"` Wager int64 `protobuf:"varint,5,opt,name=wager,proto3" json:"wager,omitempty"` Payout int64 `protobuf:"varint,6,opt,name=payout,proto3" json:"payout,omitempty"` StartedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` FinishedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finished_at,json=finishedAt,proto3,oneof" json:"finished_at,omitempty"` // contains filtered or unexported fields }
func (*GameSession) Descriptor
deprecated
func (*GameSession) Descriptor() ([]byte, []int)
Deprecated: Use GameSession.ProtoReflect.Descriptor instead.
func (*GameSession) GetFinishedAt ¶
func (x *GameSession) GetFinishedAt() *timestamppb.Timestamp
func (*GameSession) GetGameId ¶
func (x *GameSession) GetGameId() GameID
func (*GameSession) GetPayout ¶
func (x *GameSession) GetPayout() int64
func (*GameSession) GetResult ¶
func (x *GameSession) GetResult() GameResult
func (*GameSession) GetSessionId ¶
func (x *GameSession) GetSessionId() string
func (*GameSession) GetStartedAt ¶
func (x *GameSession) GetStartedAt() *timestamppb.Timestamp
func (*GameSession) GetStatus ¶
func (x *GameSession) GetStatus() GameStatus
func (*GameSession) GetWager ¶
func (x *GameSession) GetWager() int64
func (*GameSession) ProtoMessage ¶
func (*GameSession) ProtoMessage()
func (*GameSession) ProtoReflect ¶
func (x *GameSession) ProtoReflect() protoreflect.Message
func (*GameSession) Reset ¶
func (x *GameSession) Reset()
func (*GameSession) String ¶
func (x *GameSession) String() string
type GameStatus ¶
type GameStatus int32
const ( GameStatus_GAME_STATUS_UNSPECIFIED GameStatus = 0 GameStatus_GAME_STATUS_PLAYING GameStatus = 1 GameStatus_GAME_STATUS_FINISHED GameStatus = 2 )
func (GameStatus) Descriptor ¶
func (GameStatus) Descriptor() protoreflect.EnumDescriptor
func (GameStatus) Enum ¶
func (x GameStatus) Enum() *GameStatus
func (GameStatus) EnumDescriptor
deprecated
func (GameStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use GameStatus.Descriptor instead.
func (GameStatus) Number ¶
func (x GameStatus) Number() protoreflect.EnumNumber
func (GameStatus) String ¶
func (x GameStatus) String() string
func (GameStatus) Type ¶
func (GameStatus) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.