types

package
v1.66.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: BSD-3-Clause Imports: 9 Imported by: 8

Documentation

Index

Constants

View Source
const (
	GameActionCreate = iota + 1
	GameActionMatch
	GameActionCancel
	GameActionClose

	//log for game
	TyLogCreateGame = 711
	TyLogMatchGame  = 712
	TyLogCancleGame = 713
	TyLogCloseGame  = 714
)

game action ty

View Source
const (
	ActionCreateGame = "createGame"
	ActionMatchGame  = "matchGame"
	ActionCancelGame = "cancelGame"
	ActionCloseGame  = "closeGame"
)

action name

View Source
const (
	FuncNameQueryGameListByIds           = "QueryGameListByIds"
	FuncNameQueryGameListCount           = "QueryGameListCount"
	FuncNameQueryGameListByStatusAndAddr = "QueryGameListByStatusAndAddr"
	FuncNameQueryGameByID                = "QueryGameById"
)

query func name

Variables

View Source
var (
	GameX      = "game"
	ExecerGame = []byte(GameX)
)

包的名字可以通过配置文件来配置 建议用github的组织名称,或者用户名字开头, 再加上自己的插件的名字 如果发生重名,可以通过配置文件修改这些名字

View Source
var (
	ErrGameCreateAmount = fmt.Errorf("%s", "You fill in more than the maximum number of games.")
	ErrGameCancleAddr   = fmt.Errorf("%s", "You don't have permission to cancel someone else's game.")
	ErrGameCloseAddr    = fmt.Errorf("%s", "The game time has not yet expired,You don't have permission to call yet.")
	ErrGameTimeOut      = fmt.Errorf("%s", "The game has expired.,You don't have permission to call.")
	ErrGameMatchStatus  = fmt.Errorf("%s", "can't join the game, the game has matched or finished!")
	ErrGameMatch        = fmt.Errorf("%s", "can't join the game, You can't match the game you created!")
	ErrGameCancleStatus = fmt.Errorf("%s", "can't cancle the game, the game has matched!")
	ErrGameCloseStatus  = fmt.Errorf("%s", "can't close the game again, the game has  finished!")
)

some errors definition

Functions

func CreateRawGamePreCancelTx

func CreateRawGamePreCancelTx(cfg *types.Chain33Config, parm *GamePreCancelTx) (*types.Transaction, error)

CreateRawGamePreCancelTx unused,just empty implementation

func CreateRawGamePreCloseTx

func CreateRawGamePreCloseTx(cfg *types.Chain33Config, parm *GamePreCloseTx) (*types.Transaction, error)

CreateRawGamePreCloseTx unused,just empty implementation

func CreateRawGamePreCreateTx

func CreateRawGamePreCreateTx(cfg *types.Chain33Config, parm *GamePreCreateTx) (*types.Transaction, error)

CreateRawGamePreCreateTx unused,just empty implementation

func CreateRawGamePreMatchTx

func CreateRawGamePreMatchTx(cfg *types.Chain33Config, parm *GamePreMatchTx) (*types.Transaction, error)

CreateRawGamePreMatchTx unused,just empty implementation

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

Types

type Game

type Game struct {

	//默认是由创建这局游戏的txHash作为gameId
	GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
	// create 1 -> Match 2 -> Cancel 3 -> Close 4
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	//创建时间
	CreateTime int64 `protobuf:"varint,3,opt,name=createTime,proto3" json:"createTime,omitempty"`
	//匹配时间(何时参与对赌)
	MatchTime int64 `protobuf:"varint,4,opt,name=matchTime,proto3" json:"matchTime,omitempty"`
	//状态close的时间(包括cancel)
	Closetime int64 `protobuf:"varint,5,opt,name=closetime,proto3" json:"closetime,omitempty"`
	//赌注
	Value int64 `protobuf:"varint,6,opt,name=value,proto3" json:"value,omitempty"`
	//发起者账号地址
	CreateAddress string `protobuf:"bytes,7,opt,name=createAddress,proto3" json:"createAddress,omitempty"`
	//对赌者账号地址
	MatchAddress string `protobuf:"bytes,8,opt,name=matchAddress,proto3" json:"matchAddress,omitempty"`
	// hash 类型,预留字段
	HashType string `protobuf:"bytes,9,opt,name=hashType,proto3" json:"hashType,omitempty"`
	//庄家创建游戏时,庄家自己出拳结果加密后的hash值
	HashValue []byte `protobuf:"bytes,10,opt,name=hashValue,proto3" json:"hashValue,omitempty"`
	//用来公布庄家出拳结果的私钥
	Secret string `protobuf:"bytes,11,opt,name=secret,proto3" json:"secret,omitempty"`
	// 1 平局,2 庄家获胜,3 matcher获胜,4
	// 庄家开奖超时,matcher获胜,并获得本局所有赌资
	Result int32 `protobuf:"varint,12,opt,name=result,proto3" json:"result,omitempty"`
	// matcher 出拳结果
	MatcherGuess int32 `protobuf:"varint,13,opt,name=matcherGuess,proto3" json:"matcherGuess,omitempty"`
	// create txHash
	CreateTxHash string `protobuf:"bytes,14,opt,name=createTxHash,proto3" json:"createTxHash,omitempty"`
	// matche交易hash
	MatchTxHash string `protobuf:"bytes,15,opt,name=matchTxHash,proto3" json:"matchTxHash,omitempty"`
	// close txhash
	CloseTxHash string `protobuf:"bytes,16,opt,name=closeTxHash,proto3" json:"closeTxHash,omitempty"`
	// cancel txhash
	CancelTxHash string `protobuf:"bytes,17,opt,name=cancelTxHash,proto3" json:"cancelTxHash,omitempty"`
	Index        int64  `protobuf:"varint,18,opt,name=index,proto3" json:"index,omitempty"`
	PrevIndex    int64  `protobuf:"varint,19,opt,name=prevIndex,proto3" json:"prevIndex,omitempty"`
	CreatorGuess int32  `protobuf:"varint,20,opt,name=creatorGuess,proto3" json:"creatorGuess,omitempty"`
	// contains filtered or unexported fields
}

func (*Game) Descriptor deprecated

func (*Game) Descriptor() ([]byte, []int)

Deprecated: Use Game.ProtoReflect.Descriptor instead.

func (*Game) GetCancelTxHash

func (x *Game) GetCancelTxHash() string

func (*Game) GetCloseTxHash

func (x *Game) GetCloseTxHash() string

func (*Game) GetClosetime

func (x *Game) GetClosetime() int64

func (*Game) GetCreateAddress

func (x *Game) GetCreateAddress() string

func (*Game) GetCreateTime

func (x *Game) GetCreateTime() int64

func (*Game) GetCreateTxHash

func (x *Game) GetCreateTxHash() string

func (*Game) GetCreatorGuess

func (x *Game) GetCreatorGuess() int32

func (*Game) GetGameId

func (x *Game) GetGameId() string

func (*Game) GetHashType

func (x *Game) GetHashType() string

func (*Game) GetHashValue

func (x *Game) GetHashValue() []byte

func (*Game) GetIndex

func (x *Game) GetIndex() int64

func (*Game) GetMatchAddress

func (x *Game) GetMatchAddress() string

func (*Game) GetMatchTime

func (x *Game) GetMatchTime() int64

func (*Game) GetMatchTxHash

func (x *Game) GetMatchTxHash() string

func (*Game) GetMatcherGuess

func (x *Game) GetMatcherGuess() int32

func (*Game) GetPrevIndex

func (x *Game) GetPrevIndex() int64

func (*Game) GetResult

func (x *Game) GetResult() int32

func (*Game) GetSecret

func (x *Game) GetSecret() string

func (*Game) GetStatus

func (x *Game) GetStatus() int32

func (*Game) GetValue

func (x *Game) GetValue() int64

func (*Game) ProtoMessage

func (*Game) ProtoMessage()

func (*Game) ProtoReflect added in v1.65.3

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

func (*Game) Reset

func (x *Game) Reset()

func (*Game) String

func (x *Game) String() string

type GameAction

type GameAction struct {

	// Types that are assignable to Value:
	//	*GameAction_Create
	//	*GameAction_Cancel
	//	*GameAction_Close
	//	*GameAction_Match
	Value isGameAction_Value `protobuf_oneof:"value"`
	Ty    int32              `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

message for execs.game

func (*GameAction) Descriptor deprecated

func (*GameAction) Descriptor() ([]byte, []int)

Deprecated: Use GameAction.ProtoReflect.Descriptor instead.

func (*GameAction) GetCancel

func (x *GameAction) GetCancel() *GameCancel

func (*GameAction) GetClose

func (x *GameAction) GetClose() *GameClose

func (*GameAction) GetCreate

func (x *GameAction) GetCreate() *GameCreate

func (*GameAction) GetMatch

func (x *GameAction) GetMatch() *GameMatch

func (*GameAction) GetTy

func (x *GameAction) GetTy() int32

func (*GameAction) GetValue

func (m *GameAction) GetValue() isGameAction_Value

func (*GameAction) ProtoMessage

func (*GameAction) ProtoMessage()

func (*GameAction) ProtoReflect added in v1.65.3

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

func (*GameAction) Reset

func (x *GameAction) Reset()

func (*GameAction) String

func (x *GameAction) String() string

type GameAction_Cancel

type GameAction_Cancel struct {
	Cancel *GameCancel `protobuf:"bytes,2,opt,name=cancel,proto3,oneof"`
}

type GameAction_Close

type GameAction_Close struct {
	Close *GameClose `protobuf:"bytes,3,opt,name=close,proto3,oneof"`
}

type GameAction_Create

type GameAction_Create struct {
	Create *GameCreate `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}

type GameAction_Match

type GameAction_Match struct {
	Match *GameMatch `protobuf:"bytes,4,opt,name=match,proto3,oneof"`
}

type GameCancel

type GameCancel struct {
	GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
	// contains filtered or unexported fields
}

func (*GameCancel) Descriptor deprecated

func (*GameCancel) Descriptor() ([]byte, []int)

Deprecated: Use GameCancel.ProtoReflect.Descriptor instead.

func (*GameCancel) GetGameId

func (x *GameCancel) GetGameId() string

func (*GameCancel) ProtoMessage

func (*GameCancel) ProtoMessage()

func (*GameCancel) ProtoReflect added in v1.65.3

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

func (*GameCancel) Reset

func (x *GameCancel) Reset()

func (*GameCancel) String

func (x *GameCancel) String() string

type GameClose

type GameClose struct {
	GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
	Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*GameClose) Descriptor deprecated

func (*GameClose) Descriptor() ([]byte, []int)

Deprecated: Use GameClose.ProtoReflect.Descriptor instead.

func (*GameClose) GetGameId

func (x *GameClose) GetGameId() string

func (*GameClose) GetSecret

func (x *GameClose) GetSecret() string

func (*GameClose) ProtoMessage

func (*GameClose) ProtoMessage()

func (*GameClose) ProtoReflect added in v1.65.3

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

func (*GameClose) Reset

func (x *GameClose) Reset()

func (*GameClose) String

func (x *GameClose) String() string

type GameCreate

type GameCreate struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	//加密用的算法
	HashType string `protobuf:"bytes,2,opt,name=hashType,proto3" json:"hashType,omitempty"`
	//加密后的值
	HashValue []byte `protobuf:"bytes,3,opt,name=hashValue,proto3" json:"hashValue,omitempty"`
	// contains filtered or unexported fields
}

func (*GameCreate) Descriptor deprecated

func (*GameCreate) Descriptor() ([]byte, []int)

Deprecated: Use GameCreate.ProtoReflect.Descriptor instead.

func (*GameCreate) GetHashType

func (x *GameCreate) GetHashType() string

func (*GameCreate) GetHashValue

func (x *GameCreate) GetHashValue() []byte

func (*GameCreate) GetValue

func (x *GameCreate) GetValue() int64

func (*GameCreate) ProtoMessage

func (*GameCreate) ProtoMessage()

func (*GameCreate) ProtoReflect added in v1.65.3

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

func (*GameCreate) Reset

func (x *GameCreate) Reset()

func (*GameCreate) String

func (x *GameCreate) String() string

type GameMatch

type GameMatch struct {
	GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
	Guess  int32  `protobuf:"varint,2,opt,name=guess,proto3" json:"guess,omitempty"`
	// contains filtered or unexported fields
}

func (*GameMatch) Descriptor deprecated

func (*GameMatch) Descriptor() ([]byte, []int)

Deprecated: Use GameMatch.ProtoReflect.Descriptor instead.

func (*GameMatch) GetGameId

func (x *GameMatch) GetGameId() string

func (*GameMatch) GetGuess

func (x *GameMatch) GetGuess() int32

func (*GameMatch) ProtoMessage

func (*GameMatch) ProtoMessage()

func (*GameMatch) ProtoReflect added in v1.65.3

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

func (*GameMatch) Reset

func (x *GameMatch) Reset()

func (*GameMatch) String

func (x *GameMatch) String() string

type GamePreCancelTx

type GamePreCancelTx struct {
	GameID string `json:"gameID"`
	Fee    int64  `json:"fee"`
}

GamePreCancelTx pre cancel tx,unused

type GamePreCloseTx

type GamePreCloseTx struct {
	GameID string `json:"gameID"`
	Secret string `json:"secret"`
	Result int32  `json:"result"`
	Fee    int64  `json:"fee"`
}

GamePreCloseTx pre close game, unused

type GamePreCreateTx

type GamePreCreateTx struct {
	//Secret     string `json:"secret"`
	//下注必须时偶数,不能时级数
	Amount int64 `json:"amount"`
	//暂时只支持sha256加密
	HashType  string `json:"hashType"`
	HashValue []byte `json:"hashValue,omitempty"`
	Fee       int64  `json:"fee"`
}

GamePreCreateTx pre create game,unused

type GamePreMatchTx

type GamePreMatchTx struct {
	GameID string `json:"gameID"`
	Guess  int32  `json:"guess"`
	Fee    int64  `json:"fee"`
}

GamePreMatchTx pre match game,unused

type GameRecord

type GameRecord struct {
	GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
	Index  int64  `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

索引value值

func (*GameRecord) Descriptor deprecated

func (*GameRecord) Descriptor() ([]byte, []int)

Deprecated: Use GameRecord.ProtoReflect.Descriptor instead.

func (*GameRecord) GetGameId

func (x *GameRecord) GetGameId() string

func (*GameRecord) GetIndex

func (x *GameRecord) GetIndex() int64

func (*GameRecord) ProtoMessage

func (*GameRecord) ProtoMessage()

func (*GameRecord) ProtoReflect added in v1.65.3

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

func (*GameRecord) Reset

func (x *GameRecord) Reset()

func (*GameRecord) String

func (x *GameRecord) String() string

type GameType

type GameType struct {
	types.ExecTypeBase
}

GameType execType

func NewType

func NewType(cfg *types.Chain33Config) *GameType

NewType new type

func (GameType) CreateTx

func (gt GameType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)

CreateTx unused,just empty implementation

func (*GameType) GetLogMap

func (gt *GameType) GetLogMap() map[int64]*types.LogInfo

GetLogMap get log

func (*GameType) GetName

func (gt *GameType) GetName() string

GetName 获取执行器名称

func (*GameType) GetPayload

func (gt *GameType) GetPayload() types.Message

GetPayload get payload

func (*GameType) GetTypeMap

func (gt *GameType) GetTypeMap() map[string]int32

GetTypeMap get typeMap

type QueryGameInfo

type QueryGameInfo struct {
	GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryGameInfo) Descriptor deprecated

func (*QueryGameInfo) Descriptor() ([]byte, []int)

Deprecated: Use QueryGameInfo.ProtoReflect.Descriptor instead.

func (*QueryGameInfo) GetGameId

func (x *QueryGameInfo) GetGameId() string

func (*QueryGameInfo) ProtoMessage

func (*QueryGameInfo) ProtoMessage()

func (*QueryGameInfo) ProtoReflect added in v1.65.3

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

func (*QueryGameInfo) Reset

func (x *QueryGameInfo) Reset()

func (*QueryGameInfo) String

func (x *QueryGameInfo) String() string

type QueryGameInfos

type QueryGameInfos struct {
	GameIds []string `protobuf:"bytes,1,rep,name=gameIds,proto3" json:"gameIds,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryGameInfos) Descriptor deprecated

func (*QueryGameInfos) Descriptor() ([]byte, []int)

Deprecated: Use QueryGameInfos.ProtoReflect.Descriptor instead.

func (*QueryGameInfos) GetGameIds

func (x *QueryGameInfos) GetGameIds() []string

func (*QueryGameInfos) ProtoMessage

func (*QueryGameInfos) ProtoMessage()

func (*QueryGameInfos) ProtoReflect added in v1.65.3

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

func (*QueryGameInfos) Reset

func (x *QueryGameInfos) Reset()

func (*QueryGameInfos) String

func (x *QueryGameInfos) String() string

type QueryGameListByStatusAndAddr

type QueryGameListByStatusAndAddr struct {

	//优先根据status查询,status不可为空
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	//二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// 索引值
	Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	//单页返回多少条记录,默认返回20条,单次最多返回100条
	Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// 0降序,1升序,默认降序
	Direction int32 `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

queryByAddr 和 queryByStatus共用同一个结构体

func (*QueryGameListByStatusAndAddr) Descriptor deprecated

func (*QueryGameListByStatusAndAddr) Descriptor() ([]byte, []int)

Deprecated: Use QueryGameListByStatusAndAddr.ProtoReflect.Descriptor instead.

func (*QueryGameListByStatusAndAddr) GetAddress

func (x *QueryGameListByStatusAndAddr) GetAddress() string

func (*QueryGameListByStatusAndAddr) GetCount

func (x *QueryGameListByStatusAndAddr) GetCount() int32

func (*QueryGameListByStatusAndAddr) GetDirection

func (x *QueryGameListByStatusAndAddr) GetDirection() int32

func (*QueryGameListByStatusAndAddr) GetIndex

func (x *QueryGameListByStatusAndAddr) GetIndex() int64

func (*QueryGameListByStatusAndAddr) GetStatus

func (x *QueryGameListByStatusAndAddr) GetStatus() int32

func (*QueryGameListByStatusAndAddr) ProtoMessage

func (*QueryGameListByStatusAndAddr) ProtoMessage()

func (*QueryGameListByStatusAndAddr) ProtoReflect added in v1.65.3

func (*QueryGameListByStatusAndAddr) Reset

func (x *QueryGameListByStatusAndAddr) Reset()

func (*QueryGameListByStatusAndAddr) String

type QueryGameListCount

type QueryGameListCount struct {

	//优先根据status查询,status不可为空
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	//二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

统计数量

func (*QueryGameListCount) Descriptor deprecated

func (*QueryGameListCount) Descriptor() ([]byte, []int)

Deprecated: Use QueryGameListCount.ProtoReflect.Descriptor instead.

func (*QueryGameListCount) GetAddress

func (x *QueryGameListCount) GetAddress() string

func (*QueryGameListCount) GetStatus

func (x *QueryGameListCount) GetStatus() int32

func (*QueryGameListCount) ProtoMessage

func (*QueryGameListCount) ProtoMessage()

func (*QueryGameListCount) ProtoReflect added in v1.65.3

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

func (*QueryGameListCount) Reset

func (x *QueryGameListCount) Reset()

func (*QueryGameListCount) String

func (x *QueryGameListCount) String() string

type ReceiptGame

type ReceiptGame struct {
	GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
	Status int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	//记录上一次状态
	PrevStatus int32  `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"`
	Addr       string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	CreateAddr string `protobuf:"bytes,5,opt,name=createAddr,proto3" json:"createAddr,omitempty"`
	MatchAddr  string `protobuf:"bytes,6,opt,name=matchAddr,proto3" json:"matchAddr,omitempty"`
	Index      int64  `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"`
	PrevIndex  int64  `protobuf:"varint,8,opt,name=prevIndex,proto3" json:"prevIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptGame) Descriptor deprecated

func (*ReceiptGame) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptGame.ProtoReflect.Descriptor instead.

func (*ReceiptGame) GetAddr

func (x *ReceiptGame) GetAddr() string

func (*ReceiptGame) GetCreateAddr

func (x *ReceiptGame) GetCreateAddr() string

func (*ReceiptGame) GetGameId

func (x *ReceiptGame) GetGameId() string

func (*ReceiptGame) GetIndex

func (x *ReceiptGame) GetIndex() int64

func (*ReceiptGame) GetMatchAddr

func (x *ReceiptGame) GetMatchAddr() string

func (*ReceiptGame) GetPrevIndex

func (x *ReceiptGame) GetPrevIndex() int64

func (*ReceiptGame) GetPrevStatus

func (x *ReceiptGame) GetPrevStatus() int32

func (*ReceiptGame) GetStatus

func (x *ReceiptGame) GetStatus() int32

func (*ReceiptGame) ProtoMessage

func (*ReceiptGame) ProtoMessage()

func (*ReceiptGame) ProtoReflect added in v1.65.3

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

func (*ReceiptGame) Reset

func (x *ReceiptGame) Reset()

func (*ReceiptGame) String

func (x *ReceiptGame) String() string

type ReplyGame

type ReplyGame struct {
	Game *Game `protobuf:"bytes,1,opt,name=game,proto3" json:"game,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyGame) Descriptor deprecated

func (*ReplyGame) Descriptor() ([]byte, []int)

Deprecated: Use ReplyGame.ProtoReflect.Descriptor instead.

func (*ReplyGame) GetGame

func (x *ReplyGame) GetGame() *Game

func (*ReplyGame) ProtoMessage

func (*ReplyGame) ProtoMessage()

func (*ReplyGame) ProtoReflect added in v1.65.3

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

func (*ReplyGame) Reset

func (x *ReplyGame) Reset()

func (*ReplyGame) String

func (x *ReplyGame) String() string

type ReplyGameList

type ReplyGameList struct {
	Games []*Game `protobuf:"bytes,1,rep,name=games,proto3" json:"games,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyGameList) Descriptor deprecated

func (*ReplyGameList) Descriptor() ([]byte, []int)

Deprecated: Use ReplyGameList.ProtoReflect.Descriptor instead.

func (*ReplyGameList) GetGames

func (x *ReplyGameList) GetGames() []*Game

func (*ReplyGameList) ProtoMessage

func (*ReplyGameList) ProtoMessage()

func (*ReplyGameList) ProtoReflect added in v1.65.3

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

func (*ReplyGameList) Reset

func (x *ReplyGameList) Reset()

func (*ReplyGameList) String

func (x *ReplyGameList) String() string

type ReplyGameListCount

type ReplyGameListCount struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyGameListCount) Descriptor deprecated

func (*ReplyGameListCount) Descriptor() ([]byte, []int)

Deprecated: Use ReplyGameListCount.ProtoReflect.Descriptor instead.

func (*ReplyGameListCount) GetCount

func (x *ReplyGameListCount) GetCount() int64

func (*ReplyGameListCount) ProtoMessage

func (*ReplyGameListCount) ProtoMessage()

func (*ReplyGameListCount) ProtoReflect added in v1.65.3

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

func (*ReplyGameListCount) Reset

func (x *ReplyGameListCount) Reset()

func (*ReplyGameListCount) String

func (x *ReplyGameListCount) String() string

Jump to

Keyboard shortcuts

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