types

package
Version: v1.67.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: BSD-3-Clause Imports: 13 Imported by: 9

Documentation

Index

Constants

View Source
const (
	GuessGameActionStart   = 5
	GuessGameActionBet     = 6
	GuessGameActionStopBet = 7
	GuessGameActionAbort   = 8
	GuessGameActionPublish = 9
	GuessGameActionQuery   = 10

	GuessGameStatusStart   = 11
	GuessGameStatusBet     = 12
	GuessGameStatusStopBet = 13
	GuessGameStatusAbort   = 14
	GuessGameStatusPublish = 15
	GuessGameStatusTimeOut = 16
)

game action ty

View Source
const (
	TyLogGuessGameStart   = 901
	TyLogGuessGameBet     = 902
	TyLogGuessGameStopBet = 903
	TyLogGuessGameAbort   = 904
	TyLogGuessGamePublish = 905
	TyLogGuessGameTimeout = 906
)

game log ty

View Source
const (
	//FuncNameQueryGamesByIDs func name
	FuncNameQueryGamesByIDs = "QueryGamesByIDs"

	//FuncNameQueryGameByID func name
	FuncNameQueryGameByID = "QueryGameByID"

	//FuncNameQueryGameByAddr func name
	FuncNameQueryGameByAddr = "QueryGamesByAddr"

	//FuncNameQueryGameByStatus func name
	FuncNameQueryGameByStatus = "QueryGamesByStatus"

	//FuncNameQueryGameByAdminAddr func name
	FuncNameQueryGameByAdminAddr = "QueryGamesByAdminAddr"

	//FuncNameQueryGameByAddrStatus func name
	FuncNameQueryGameByAddrStatus = "QueryGamesByAddrStatus"

	//FuncNameQueryGameByAdminStatus func name
	FuncNameQueryGameByAdminStatus = "QueryGamesByAdminStatus"

	//FuncNameQueryGameByCategoryStatus func name
	FuncNameQueryGameByCategoryStatus = "QueryGamesByCategoryStatus"

	//CreateStartTx 创建开始交易
	CreateStartTx = "Start"

	//CreateBetTx 创建下注交易
	CreateBetTx = "Bet"

	//CreateStopBetTx 创建停止下注交易
	CreateStopBetTx = "StopBet"

	//CreatePublishTx 创建公布结果交易
	CreatePublishTx = "Publish"

	//CreateAbortTx 创建撤销游戏交易
	CreateAbortTx = "Abort"
)
View Source
const (
	//DevShareAddr default value
	DevShareAddr = "1D6RFZNp2rh6QdbcZ1d7RWuBUz61We6SD7"

	//PlatformShareAddr default value
	PlatformShareAddr = "1PHtChNt3UcfssR7v7trKSk3WJtAWjKjjX"
)

Variables

View Source
var (
	GuessX      = "guess"
	ExecerGuess = []byte(GuessX)
)

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

View Source
var (
	ErrNoPrivilege              = errors.New("ErrNoPrivilege")
	ErrGuessStatus              = errors.New("ErrGuessStatus")
	ErrOverBetsLimit            = errors.New("ErrOverBetsLimit")
	ErrParamStatusInvalid       = errors.New("ErrParamStatusInvalid")
	ErrParamAddressMustnotEmpty = errors.New("ErrParamAddressMustnotEmpty")
	ErrGameNotExist             = errors.New("ErrGameNotExist")
	ErrSaveTable                = errors.New("ErrSaveTable")
)

Errors for lottery

View Source
var File_guess_proto protoreflect.FileDescriptor

Functions

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

func NewGuessGameTable

func NewGuessGameTable(kvdb db.KV) *table.Table

NewGuessGameTable 新建表

func NewGuessUserTable

func NewGuessUserTable(kvdb db.KV) *table.Table

NewGuessUserTable 新建表

func RegisterGuessServer

func RegisterGuessServer(s *grpc.Server, srv GuessServer)

Types

type GuessAbortTxReq

type GuessAbortTxReq struct {
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Fee    int64  `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

GuessAbortTxReq 构造abort交易的请求

func (*GuessAbortTxReq) Descriptor deprecated

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

Deprecated: Use GuessAbortTxReq.ProtoReflect.Descriptor instead.

func (*GuessAbortTxReq) GetFee

func (x *GuessAbortTxReq) GetFee() int64

func (*GuessAbortTxReq) GetGameID

func (x *GuessAbortTxReq) GetGameID() string

func (*GuessAbortTxReq) ProtoMessage

func (*GuessAbortTxReq) ProtoMessage()

func (*GuessAbortTxReq) ProtoReflect added in v1.65.3

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

func (*GuessAbortTxReq) Reset

func (x *GuessAbortTxReq) Reset()

func (*GuessAbortTxReq) String

func (x *GuessAbortTxReq) String() string

type GuessBet

type GuessBet struct {
	Option     string `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"`
	BetsNumber int64  `protobuf:"varint,2,opt,name=betsNumber,proto3" json:"betsNumber,omitempty"`
	IsWinner   bool   `protobuf:"varint,3,opt,name=isWinner,proto3" json:"isWinner,omitempty"`
	Profit     int64  `protobuf:"varint,4,opt,name=profit,proto3" json:"profit,omitempty"`
	Index      int64  `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	PreIndex   int64  `protobuf:"varint,6,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
	// contains filtered or unexported fields
}

GuessBet 竞猜下注信息

func (*GuessBet) Descriptor deprecated

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

Deprecated: Use GuessBet.ProtoReflect.Descriptor instead.

func (*GuessBet) GetBetsNumber

func (x *GuessBet) GetBetsNumber() int64

func (*GuessBet) GetIndex

func (x *GuessBet) GetIndex() int64

func (*GuessBet) GetIsWinner

func (x *GuessBet) GetIsWinner() bool

func (*GuessBet) GetOption

func (x *GuessBet) GetOption() string

func (*GuessBet) GetPreIndex

func (x *GuessBet) GetPreIndex() int64

func (*GuessBet) GetProfit

func (x *GuessBet) GetProfit() int64

func (*GuessBet) ProtoMessage

func (*GuessBet) ProtoMessage()

func (*GuessBet) ProtoReflect added in v1.65.3

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

func (*GuessBet) Reset

func (x *GuessBet) Reset()

func (*GuessBet) String

func (x *GuessBet) String() string

type GuessBetStat

type GuessBetStat struct {
	TotalBetTimes   int64               `protobuf:"varint,1,opt,name=totalBetTimes,proto3" json:"totalBetTimes,omitempty"`
	TotalBetsNumber int64               `protobuf:"varint,2,opt,name=totalBetsNumber,proto3" json:"totalBetsNumber,omitempty"`
	Items           []*GuessBetStatItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

GuessBetStat 竞猜下注统计信息

func (*GuessBetStat) Descriptor deprecated

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

Deprecated: Use GuessBetStat.ProtoReflect.Descriptor instead.

func (*GuessBetStat) GetItems

func (x *GuessBetStat) GetItems() []*GuessBetStatItem

func (*GuessBetStat) GetTotalBetTimes

func (x *GuessBetStat) GetTotalBetTimes() int64

func (*GuessBetStat) GetTotalBetsNumber

func (x *GuessBetStat) GetTotalBetsNumber() int64

func (*GuessBetStat) ProtoMessage

func (*GuessBetStat) ProtoMessage()

func (*GuessBetStat) ProtoReflect added in v1.65.3

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

func (*GuessBetStat) Reset

func (x *GuessBetStat) Reset()

func (*GuessBetStat) String

func (x *GuessBetStat) String() string

type GuessBetStatItem

type GuessBetStatItem struct {
	Option     string `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"`
	BetsNumber int64  `protobuf:"varint,2,opt,name=betsNumber,proto3" json:"betsNumber,omitempty"`
	BetsTimes  int64  `protobuf:"varint,3,opt,name=betsTimes,proto3" json:"betsTimes,omitempty"`
	// contains filtered or unexported fields
}

GuessBetStat 竞猜下注子选项统计信息

func (*GuessBetStatItem) Descriptor deprecated

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

Deprecated: Use GuessBetStatItem.ProtoReflect.Descriptor instead.

func (*GuessBetStatItem) GetBetsNumber

func (x *GuessBetStatItem) GetBetsNumber() int64

func (*GuessBetStatItem) GetBetsTimes

func (x *GuessBetStatItem) GetBetsTimes() int64

func (*GuessBetStatItem) GetOption

func (x *GuessBetStatItem) GetOption() string

func (*GuessBetStatItem) ProtoMessage

func (*GuessBetStatItem) ProtoMessage()

func (*GuessBetStatItem) ProtoReflect added in v1.65.3

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

func (*GuessBetStatItem) Reset

func (x *GuessBetStatItem) Reset()

func (*GuessBetStatItem) String

func (x *GuessBetStatItem) String() string

type GuessBetTxReq

type GuessBetTxReq struct {
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Option string `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
	Bets   int64  `protobuf:"varint,3,opt,name=bets,proto3" json:"bets,omitempty"`
	Fee    int64  `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

GuessBetTxReq 构造bet交易的请求

func (*GuessBetTxReq) Descriptor deprecated

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

Deprecated: Use GuessBetTxReq.ProtoReflect.Descriptor instead.

func (*GuessBetTxReq) GetBets

func (x *GuessBetTxReq) GetBets() int64

func (*GuessBetTxReq) GetFee

func (x *GuessBetTxReq) GetFee() int64

func (*GuessBetTxReq) GetGameID

func (x *GuessBetTxReq) GetGameID() string

func (*GuessBetTxReq) GetOption

func (x *GuessBetTxReq) GetOption() string

func (*GuessBetTxReq) ProtoMessage

func (*GuessBetTxReq) ProtoMessage()

func (*GuessBetTxReq) ProtoReflect added in v1.65.3

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

func (*GuessBetTxReq) Reset

func (x *GuessBetTxReq) Reset()

func (*GuessBetTxReq) String

func (x *GuessBetTxReq) String() string

type GuessClient

type GuessClient interface {
	//游戏开始
	GuessStart(ctx context.Context, in *GuessGameStart, opts ...grpc.CallOption) (*types.UnsignTx, error)
	//游戏下注
	GuessBet(ctx context.Context, in *GuessGameBet, opts ...grpc.CallOption) (*types.UnsignTx, error)
	//游戏终止下注
	GuessStopBet(ctx context.Context, in *GuessGameStopBet, opts ...grpc.CallOption) (*types.UnsignTx, error)
	//游戏异常终止
	GuessAbort(ctx context.Context, in *GuessGameAbort, opts ...grpc.CallOption) (*types.UnsignTx, error)
	//游戏结束
	GuessPublish(ctx context.Context, in *GuessGamePublish, opts ...grpc.CallOption) (*types.UnsignTx, error)
}

GuessClient is the client API for Guess service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGuessClient

func NewGuessClient(cc grpc.ClientConnInterface) GuessClient

type GuessGame

type GuessGame struct {
	GameID         string         `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`  //游戏ID
	Status         int32          `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` //游戏的状态:创建->投注->截止投注->开奖
	PreStatus      int32          `protobuf:"varint,3,opt,name=preStatus,proto3" json:"preStatus,omitempty"`
	StartTime      int64          `protobuf:"varint,4,opt,name=startTime,proto3" json:"startTime,omitempty"`            //创建游戏的时间
	StartHeight    int64          `protobuf:"varint,5,opt,name=startHeight,proto3" json:"startHeight,omitempty"`        //创建游戏的时间
	StartTxHash    string         `protobuf:"bytes,6,opt,name=startTxHash,proto3" json:"startTxHash,omitempty"`         //创建游戏的交易hash
	StartIndex     int64          `protobuf:"varint,7,opt,name=startIndex,proto3" json:"startIndex,omitempty"`          //创建游戏的交易index
	Topic          string         `protobuf:"bytes,8,opt,name=topic,proto3" json:"topic,omitempty"`                     //主题
	Category       string         `protobuf:"bytes,9,opt,name=category,proto3" json:"category,omitempty"`               //分类
	Options        string         `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"`                //选项
	MaxBetHeight   int64          `protobuf:"varint,11,opt,name=maxBetHeight,proto3" json:"maxBetHeight,omitempty"`     //截止下注的块高
	MaxBetsOneTime int64          `protobuf:"varint,12,opt,name=maxBetsOneTime,proto3" json:"maxBetsOneTime,omitempty"` //单次可以下多少注,默认100
	MaxBetsNumber  int64          `protobuf:"varint,13,opt,name=maxBetsNumber,proto3" json:"maxBetsNumber,omitempty"`   //最多可以下多少注
	DevFeeFactor   int64          `protobuf:"varint,14,opt,name=devFeeFactor,proto3" json:"devFeeFactor,omitempty"`     //开发者抽成比例
	DevFeeAddr     string         `protobuf:"bytes,15,opt,name=devFeeAddr,proto3" json:"devFeeAddr,omitempty"`          //开发者地址
	PlatFeeFactor  int64          `protobuf:"varint,16,opt,name=platFeeFactor,proto3" json:"platFeeFactor,omitempty"`   //平台抽成比例
	PlatFeeAddr    string         `protobuf:"bytes,17,opt,name=platFeeAddr,proto3" json:"platFeeAddr,omitempty"`        //平台地址
	ExpireHeight   int64          `protobuf:"varint,18,opt,name=expireHeight,proto3" json:"expireHeight,omitempty"`     //游戏过期区块高度
	AdminAddr      string         `protobuf:"bytes,19,opt,name=adminAddr,proto3" json:"adminAddr,omitempty"`            //游戏创建者地址,只有该地址可以开奖
	BetsNumber     int64          `protobuf:"varint,20,opt,name=betsNumber,proto3" json:"betsNumber,omitempty"`         //已下注数,如果数量达到maxBetsNumber,则不允许再下注
	Plays          []*GuessPlayer `protobuf:"bytes,21,rep,name=plays,proto3" json:"plays,omitempty"`                    //参与游戏下注的玩家投注信息
	Result         string         `protobuf:"bytes,22,opt,name=result,proto3" json:"result,omitempty"`                  //公布的中奖结果
	BetStat        *GuessBetStat  `protobuf:"bytes,23,opt,name=betStat,proto3" json:"betStat,omitempty"`
	Index          int64          `protobuf:"varint,24,opt,name=index,proto3" json:"index,omitempty"`
	PreIndex       int64          `protobuf:"varint,25,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
	DrivenByAdmin  bool           `protobuf:"varint,26,opt,name=drivenByAdmin,proto3" json:"drivenByAdmin,omitempty"`
	// contains filtered or unexported fields
}

GuessGame 竞猜游戏详情

func (*GuessGame) Descriptor deprecated

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

Deprecated: Use GuessGame.ProtoReflect.Descriptor instead.

func (*GuessGame) GetAdminAddr

func (x *GuessGame) GetAdminAddr() string

func (*GuessGame) GetBetStat

func (x *GuessGame) GetBetStat() *GuessBetStat

func (*GuessGame) GetBetsNumber

func (x *GuessGame) GetBetsNumber() int64

func (*GuessGame) GetCategory

func (x *GuessGame) GetCategory() string

func (*GuessGame) GetDevFeeAddr

func (x *GuessGame) GetDevFeeAddr() string

func (*GuessGame) GetDevFeeFactor

func (x *GuessGame) GetDevFeeFactor() int64

func (*GuessGame) GetDrivenByAdmin

func (x *GuessGame) GetDrivenByAdmin() bool

func (*GuessGame) GetExpireHeight

func (x *GuessGame) GetExpireHeight() int64

func (*GuessGame) GetGameID

func (x *GuessGame) GetGameID() string

func (*GuessGame) GetIndex

func (x *GuessGame) GetIndex() int64

func (*GuessGame) GetMaxBetHeight

func (x *GuessGame) GetMaxBetHeight() int64

func (*GuessGame) GetMaxBetsNumber

func (x *GuessGame) GetMaxBetsNumber() int64

func (*GuessGame) GetMaxBetsOneTime

func (x *GuessGame) GetMaxBetsOneTime() int64

func (*GuessGame) GetOptions

func (x *GuessGame) GetOptions() string

func (*GuessGame) GetPlatFeeAddr

func (x *GuessGame) GetPlatFeeAddr() string

func (*GuessGame) GetPlatFeeFactor

func (x *GuessGame) GetPlatFeeFactor() int64

func (*GuessGame) GetPlays

func (x *GuessGame) GetPlays() []*GuessPlayer

func (*GuessGame) GetPreIndex

func (x *GuessGame) GetPreIndex() int64

func (*GuessGame) GetPreStatus

func (x *GuessGame) GetPreStatus() int32

func (*GuessGame) GetResult

func (x *GuessGame) GetResult() string

func (*GuessGame) GetStartHeight

func (x *GuessGame) GetStartHeight() int64

func (*GuessGame) GetStartIndex

func (x *GuessGame) GetStartIndex() int64

func (*GuessGame) GetStartTime

func (x *GuessGame) GetStartTime() int64

func (*GuessGame) GetStartTxHash

func (x *GuessGame) GetStartTxHash() string

func (*GuessGame) GetStatus

func (x *GuessGame) GetStatus() int32

func (*GuessGame) GetTopic

func (x *GuessGame) GetTopic() string

func (*GuessGame) ProtoMessage

func (*GuessGame) ProtoMessage()

func (*GuessGame) ProtoReflect added in v1.65.3

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

func (*GuessGame) Reset

func (x *GuessGame) Reset()

func (*GuessGame) String

func (x *GuessGame) String() string

type GuessGameAbort

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

GuessGameAbort 游戏异常终止,退还下注

func (*GuessGameAbort) Descriptor deprecated

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

Deprecated: Use GuessGameAbort.ProtoReflect.Descriptor instead.

func (*GuessGameAbort) GetGameID

func (x *GuessGameAbort) GetGameID() string

func (*GuessGameAbort) ProtoMessage

func (*GuessGameAbort) ProtoMessage()

func (*GuessGameAbort) ProtoReflect added in v1.65.3

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

func (*GuessGameAbort) Reset

func (x *GuessGameAbort) Reset()

func (*GuessGameAbort) String

func (x *GuessGameAbort) String() string

type GuessGameAction

type GuessGameAction struct {

	// Types that are assignable to Value:
	//	*GuessGameAction_Start
	//	*GuessGameAction_Bet
	//	*GuessGameAction_StopBet
	//	*GuessGameAction_Abort
	//	*GuessGameAction_Publish
	//	*GuessGameAction_Query
	Value isGuessGameAction_Value `protobuf_oneof:"value"`
	Ty    int32                   `protobuf:"varint,7,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

GuessGameAction 竞猜游戏动作

func (*GuessGameAction) Descriptor deprecated

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

Deprecated: Use GuessGameAction.ProtoReflect.Descriptor instead.

func (*GuessGameAction) GetAbort

func (x *GuessGameAction) GetAbort() *GuessGameAbort

func (*GuessGameAction) GetBet

func (x *GuessGameAction) GetBet() *GuessGameBet

func (*GuessGameAction) GetPublish

func (x *GuessGameAction) GetPublish() *GuessGamePublish

func (*GuessGameAction) GetQuery

func (x *GuessGameAction) GetQuery() *GuessGameQuery

func (*GuessGameAction) GetStart

func (x *GuessGameAction) GetStart() *GuessGameStart

func (*GuessGameAction) GetStopBet

func (x *GuessGameAction) GetStopBet() *GuessGameStopBet

func (*GuessGameAction) GetTy

func (x *GuessGameAction) GetTy() int32

func (*GuessGameAction) GetValue

func (m *GuessGameAction) GetValue() isGuessGameAction_Value

func (*GuessGameAction) ProtoMessage

func (*GuessGameAction) ProtoMessage()

func (*GuessGameAction) ProtoReflect added in v1.65.3

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

func (*GuessGameAction) Reset

func (x *GuessGameAction) Reset()

func (*GuessGameAction) String

func (x *GuessGameAction) String() string

type GuessGameAction_Abort

type GuessGameAction_Abort struct {
	Abort *GuessGameAbort `protobuf:"bytes,4,opt,name=abort,proto3,oneof"`
}

type GuessGameAction_Bet

type GuessGameAction_Bet struct {
	Bet *GuessGameBet `protobuf:"bytes,2,opt,name=bet,proto3,oneof"`
}

type GuessGameAction_Publish

type GuessGameAction_Publish struct {
	Publish *GuessGamePublish `protobuf:"bytes,5,opt,name=publish,proto3,oneof"`
}

type GuessGameAction_Query

type GuessGameAction_Query struct {
	Query *GuessGameQuery `protobuf:"bytes,6,opt,name=query,proto3,oneof"`
}

type GuessGameAction_Start

type GuessGameAction_Start struct {
	Start *GuessGameStart `protobuf:"bytes,1,opt,name=start,proto3,oneof"`
}

type GuessGameAction_StopBet

type GuessGameAction_StopBet struct {
	StopBet *GuessGameStopBet `protobuf:"bytes,3,opt,name=stopBet,proto3,oneof"`
}

type GuessGameBet

type GuessGameBet struct {
	GameID  string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Option  string `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
	BetsNum int64  `protobuf:"varint,3,opt,name=betsNum,proto3" json:"betsNum,omitempty"`
	// contains filtered or unexported fields
}

GuessGameBet 参与游戏下注

func (*GuessGameBet) Descriptor deprecated

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

Deprecated: Use GuessGameBet.ProtoReflect.Descriptor instead.

func (*GuessGameBet) GetBetsNum

func (x *GuessGameBet) GetBetsNum() int64

func (*GuessGameBet) GetGameID

func (x *GuessGameBet) GetGameID() string

func (*GuessGameBet) GetOption

func (x *GuessGameBet) GetOption() string

func (*GuessGameBet) ProtoMessage

func (*GuessGameBet) ProtoMessage()

func (*GuessGameBet) ProtoReflect added in v1.65.3

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

func (*GuessGameBet) Reset

func (x *GuessGameBet) Reset()

func (*GuessGameBet) String

func (x *GuessGameBet) String() string

type GuessGamePublish

type GuessGamePublish struct {
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

GuessGamePublish 游戏结果揭晓

func (*GuessGamePublish) Descriptor deprecated

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

Deprecated: Use GuessGamePublish.ProtoReflect.Descriptor instead.

func (*GuessGamePublish) GetGameID

func (x *GuessGamePublish) GetGameID() string

func (*GuessGamePublish) GetResult

func (x *GuessGamePublish) GetResult() string

func (*GuessGamePublish) ProtoMessage

func (*GuessGamePublish) ProtoMessage()

func (*GuessGamePublish) ProtoReflect added in v1.65.3

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

func (*GuessGamePublish) Reset

func (x *GuessGamePublish) Reset()

func (*GuessGamePublish) String

func (x *GuessGamePublish) String() string

type GuessGameQuery

type GuessGameQuery struct {
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Ty     uint32 `protobuf:"varint,2,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

GuessGameQuery 查询游戏结果

func (*GuessGameQuery) Descriptor deprecated

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

Deprecated: Use GuessGameQuery.ProtoReflect.Descriptor instead.

func (*GuessGameQuery) GetGameID

func (x *GuessGameQuery) GetGameID() string

func (*GuessGameQuery) GetTy

func (x *GuessGameQuery) GetTy() uint32

func (*GuessGameQuery) ProtoMessage

func (*GuessGameQuery) ProtoMessage()

func (*GuessGameQuery) ProtoReflect added in v1.65.3

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

func (*GuessGameQuery) Reset

func (x *GuessGameQuery) Reset()

func (*GuessGameQuery) String

func (x *GuessGameQuery) String() string

type GuessGameRecord

type GuessGameRecord struct {
	GameID     string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	StartIndex int64  `protobuf:"varint,2,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
	// contains filtered or unexported fields
}

GuessGameRecord game信息查询记录

func (*GuessGameRecord) Descriptor deprecated

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

Deprecated: Use GuessGameRecord.ProtoReflect.Descriptor instead.

func (*GuessGameRecord) GetGameID

func (x *GuessGameRecord) GetGameID() string

func (*GuessGameRecord) GetStartIndex

func (x *GuessGameRecord) GetStartIndex() int64

func (*GuessGameRecord) ProtoMessage

func (*GuessGameRecord) ProtoMessage()

func (*GuessGameRecord) ProtoReflect added in v1.65.3

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

func (*GuessGameRecord) Reset

func (x *GuessGameRecord) Reset()

func (*GuessGameRecord) String

func (x *GuessGameRecord) String() string

type GuessGameRecords

type GuessGameRecords struct {
	Records    []*GuessGameRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	PrimaryKey string             `protobuf:"bytes,2,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
	// contains filtered or unexported fields
}

GuessGameRecords game信息查询记录集

func (*GuessGameRecords) Descriptor deprecated

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

Deprecated: Use GuessGameRecords.ProtoReflect.Descriptor instead.

func (*GuessGameRecords) GetPrimaryKey

func (x *GuessGameRecords) GetPrimaryKey() string

func (*GuessGameRecords) GetRecords

func (x *GuessGameRecords) GetRecords() []*GuessGameRecord

func (*GuessGameRecords) ProtoMessage

func (*GuessGameRecords) ProtoMessage()

func (*GuessGameRecords) ProtoReflect added in v1.65.3

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

func (*GuessGameRecords) Reset

func (x *GuessGameRecords) Reset()

func (*GuessGameRecords) String

func (x *GuessGameRecords) String() string

type GuessGameRow

type GuessGameRow struct {
	*GuessGame
}

GuessGameRow table meta 结构

func NewGuessGameRow

func NewGuessGameRow() *GuessGameRow

NewGuessGameRow 新建一个meta 结构

func (*GuessGameRow) CreateRow

func (tx *GuessGameRow) CreateRow() *table.Row

CreateRow 新建数据行(注意index 数据一定也要保存到数据中,不能就保存eventid)

func (*GuessGameRow) Get

func (tx *GuessGameRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*GuessGameRow) SetPayload

func (tx *GuessGameRow) SetPayload(data types.Message) error

SetPayload 设置数据

type GuessGameStart

type GuessGameStart struct {
	Topic          string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Options        string `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	Category       string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
	MaxBetHeight   int64  `protobuf:"varint,4,opt,name=maxBetHeight,proto3" json:"maxBetHeight,omitempty"`
	MaxBetsOneTime int64  `protobuf:"varint,5,opt,name=maxBetsOneTime,proto3" json:"maxBetsOneTime,omitempty"`
	MaxBetsNumber  int64  `protobuf:"varint,6,opt,name=maxBetsNumber,proto3" json:"maxBetsNumber,omitempty"`
	DevFeeFactor   int64  `protobuf:"varint,7,opt,name=devFeeFactor,proto3" json:"devFeeFactor,omitempty"`   //开发者抽成比例
	DevFeeAddr     string `protobuf:"bytes,8,opt,name=devFeeAddr,proto3" json:"devFeeAddr,omitempty"`        //开发者地址
	PlatFeeFactor  int64  `protobuf:"varint,9,opt,name=platFeeFactor,proto3" json:"platFeeFactor,omitempty"` //平台抽成比例
	PlatFeeAddr    string `protobuf:"bytes,10,opt,name=platFeeAddr,proto3" json:"platFeeAddr,omitempty"`     //平台地址
	ExpireHeight   int64  `protobuf:"varint,11,opt,name=expireHeight,proto3" json:"expireHeight,omitempty"`
	DrivenByAdmin  bool   `protobuf:"varint,12,opt,name=drivenByAdmin,proto3" json:"drivenByAdmin,omitempty"`
	// contains filtered or unexported fields
}

GuessGameStart 游戏创建

func (*GuessGameStart) Descriptor deprecated

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

Deprecated: Use GuessGameStart.ProtoReflect.Descriptor instead.

func (*GuessGameStart) GetCategory

func (x *GuessGameStart) GetCategory() string

func (*GuessGameStart) GetDevFeeAddr

func (x *GuessGameStart) GetDevFeeAddr() string

func (*GuessGameStart) GetDevFeeFactor

func (x *GuessGameStart) GetDevFeeFactor() int64

func (*GuessGameStart) GetDrivenByAdmin

func (x *GuessGameStart) GetDrivenByAdmin() bool

func (*GuessGameStart) GetExpireHeight

func (x *GuessGameStart) GetExpireHeight() int64

func (*GuessGameStart) GetMaxBetHeight

func (x *GuessGameStart) GetMaxBetHeight() int64

func (*GuessGameStart) GetMaxBetsNumber

func (x *GuessGameStart) GetMaxBetsNumber() int64

func (*GuessGameStart) GetMaxBetsOneTime

func (x *GuessGameStart) GetMaxBetsOneTime() int64

func (*GuessGameStart) GetOptions

func (x *GuessGameStart) GetOptions() string

func (*GuessGameStart) GetPlatFeeAddr

func (x *GuessGameStart) GetPlatFeeAddr() string

func (*GuessGameStart) GetPlatFeeFactor

func (x *GuessGameStart) GetPlatFeeFactor() int64

func (*GuessGameStart) GetTopic

func (x *GuessGameStart) GetTopic() string

func (*GuessGameStart) ProtoMessage

func (*GuessGameStart) ProtoMessage()

func (*GuessGameStart) ProtoReflect added in v1.65.3

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

func (*GuessGameStart) Reset

func (x *GuessGameStart) Reset()

func (*GuessGameStart) String

func (x *GuessGameStart) String() string

type GuessGameStopBet

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

GuessGameStopBet 游戏停止下注

func (*GuessGameStopBet) Descriptor deprecated

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

Deprecated: Use GuessGameStopBet.ProtoReflect.Descriptor instead.

func (*GuessGameStopBet) GetGameID

func (x *GuessGameStopBet) GetGameID() string

func (*GuessGameStopBet) ProtoMessage

func (*GuessGameStopBet) ProtoMessage()

func (*GuessGameStopBet) ProtoReflect added in v1.65.3

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

func (*GuessGameStopBet) Reset

func (x *GuessGameStopBet) Reset()

func (*GuessGameStopBet) String

func (x *GuessGameStopBet) String() string

type GuessPlayer

type GuessPlayer struct {
	Addr string    `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Bet  *GuessBet `protobuf:"bytes,2,opt,name=bet,proto3" json:"bet,omitempty"`
	// contains filtered or unexported fields
}

GuessPlayer 竞猜玩家信息

func (*GuessPlayer) Descriptor deprecated

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

Deprecated: Use GuessPlayer.ProtoReflect.Descriptor instead.

func (*GuessPlayer) GetAddr

func (x *GuessPlayer) GetAddr() string

func (*GuessPlayer) GetBet

func (x *GuessPlayer) GetBet() *GuessBet

func (*GuessPlayer) ProtoMessage

func (*GuessPlayer) ProtoMessage()

func (*GuessPlayer) ProtoReflect added in v1.65.3

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

func (*GuessPlayer) Reset

func (x *GuessPlayer) Reset()

func (*GuessPlayer) String

func (x *GuessPlayer) String() string

type GuessPublishTxReq

type GuessPublishTxReq struct {
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	Fee    int64  `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

GuessPublishTxReq 构造publish交易的请求

func (*GuessPublishTxReq) Descriptor deprecated

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

Deprecated: Use GuessPublishTxReq.ProtoReflect.Descriptor instead.

func (*GuessPublishTxReq) GetFee

func (x *GuessPublishTxReq) GetFee() int64

func (*GuessPublishTxReq) GetGameID

func (x *GuessPublishTxReq) GetGameID() string

func (*GuessPublishTxReq) GetResult

func (x *GuessPublishTxReq) GetResult() string

func (*GuessPublishTxReq) ProtoMessage

func (*GuessPublishTxReq) ProtoMessage()

func (*GuessPublishTxReq) ProtoReflect added in v1.65.3

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

func (*GuessPublishTxReq) Reset

func (x *GuessPublishTxReq) Reset()

func (*GuessPublishTxReq) String

func (x *GuessPublishTxReq) String() string

type GuessServer

type GuessServer interface {
	//游戏开始
	GuessStart(context.Context, *GuessGameStart) (*types.UnsignTx, error)
	//游戏下注
	GuessBet(context.Context, *GuessGameBet) (*types.UnsignTx, error)
	//游戏终止下注
	GuessStopBet(context.Context, *GuessGameStopBet) (*types.UnsignTx, error)
	//游戏异常终止
	GuessAbort(context.Context, *GuessGameAbort) (*types.UnsignTx, error)
	//游戏结束
	GuessPublish(context.Context, *GuessGamePublish) (*types.UnsignTx, error)
}

GuessServer is the server API for Guess service.

type GuessStartTxReq

type GuessStartTxReq struct {
	Topic          string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Options        string `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	Category       string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
	MaxHeight      int64  `protobuf:"varint,4,opt,name=maxHeight,proto3" json:"maxHeight,omitempty"`
	MaxBetHeight   int64  `protobuf:"varint,5,opt,name=maxBetHeight,proto3" json:"maxBetHeight,omitempty"`
	MaxBetsOneTime int64  `protobuf:"varint,6,opt,name=maxBetsOneTime,proto3" json:"maxBetsOneTime,omitempty"`
	MaxBetsNumber  int64  `protobuf:"varint,7,opt,name=maxBetsNumber,proto3" json:"maxBetsNumber,omitempty"`
	DevFeeFactor   int64  `protobuf:"varint,8,opt,name=devFeeFactor,proto3" json:"devFeeFactor,omitempty"`
	DevFeeAddr     string `protobuf:"bytes,9,opt,name=devFeeAddr,proto3" json:"devFeeAddr,omitempty"`
	PlatFeeFactor  int64  `protobuf:"varint,10,opt,name=platFeeFactor,proto3" json:"platFeeFactor,omitempty"`
	PlatFeeAddr    string `protobuf:"bytes,11,opt,name=platFeeAddr,proto3" json:"platFeeAddr,omitempty"`
	ExpireHeight   int64  `protobuf:"varint,12,opt,name=expireHeight,proto3" json:"expireHeight,omitempty"`
	Fee            int64  `protobuf:"varint,13,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

GuessStartTxReq 构造start交易的请求

func (*GuessStartTxReq) Descriptor deprecated

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

Deprecated: Use GuessStartTxReq.ProtoReflect.Descriptor instead.

func (*GuessStartTxReq) GetCategory

func (x *GuessStartTxReq) GetCategory() string

func (*GuessStartTxReq) GetDevFeeAddr

func (x *GuessStartTxReq) GetDevFeeAddr() string

func (*GuessStartTxReq) GetDevFeeFactor

func (x *GuessStartTxReq) GetDevFeeFactor() int64

func (*GuessStartTxReq) GetExpireHeight

func (x *GuessStartTxReq) GetExpireHeight() int64

func (*GuessStartTxReq) GetFee

func (x *GuessStartTxReq) GetFee() int64

func (*GuessStartTxReq) GetMaxBetHeight

func (x *GuessStartTxReq) GetMaxBetHeight() int64

func (*GuessStartTxReq) GetMaxBetsNumber

func (x *GuessStartTxReq) GetMaxBetsNumber() int64

func (*GuessStartTxReq) GetMaxBetsOneTime

func (x *GuessStartTxReq) GetMaxBetsOneTime() int64

func (*GuessStartTxReq) GetMaxHeight

func (x *GuessStartTxReq) GetMaxHeight() int64

func (*GuessStartTxReq) GetOptions

func (x *GuessStartTxReq) GetOptions() string

func (*GuessStartTxReq) GetPlatFeeAddr

func (x *GuessStartTxReq) GetPlatFeeAddr() string

func (*GuessStartTxReq) GetPlatFeeFactor

func (x *GuessStartTxReq) GetPlatFeeFactor() int64

func (*GuessStartTxReq) GetTopic

func (x *GuessStartTxReq) GetTopic() string

func (*GuessStartTxReq) ProtoMessage

func (*GuessStartTxReq) ProtoMessage()

func (*GuessStartTxReq) ProtoReflect added in v1.65.3

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

func (*GuessStartTxReq) Reset

func (x *GuessStartTxReq) Reset()

func (*GuessStartTxReq) String

func (x *GuessStartTxReq) String() string

type GuessStopBetTxReq

type GuessStopBetTxReq struct {
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Fee    int64  `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

GuessStopBetTxReq 构造stopBet交易的请求

func (*GuessStopBetTxReq) Descriptor deprecated

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

Deprecated: Use GuessStopBetTxReq.ProtoReflect.Descriptor instead.

func (*GuessStopBetTxReq) GetFee

func (x *GuessStopBetTxReq) GetFee() int64

func (*GuessStopBetTxReq) GetGameID

func (x *GuessStopBetTxReq) GetGameID() string

func (*GuessStopBetTxReq) ProtoMessage

func (*GuessStopBetTxReq) ProtoMessage()

func (*GuessStopBetTxReq) ProtoReflect added in v1.65.3

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

func (*GuessStopBetTxReq) Reset

func (x *GuessStopBetTxReq) Reset()

func (*GuessStopBetTxReq) String

func (x *GuessStopBetTxReq) String() string

type GuessType

type GuessType struct {
	types.ExecTypeBase
}

GuessType struct

func NewType

func NewType(cfg *types.Chain33Config) *GuessType

NewType method

func (*GuessType) GetLogMap

func (t *GuessType) GetLogMap() map[int64]*types.LogInfo

GetLogMap method

func (*GuessType) GetPayload

func (t *GuessType) GetPayload() types.Message

GetPayload method

func (*GuessType) GetTypeMap

func (t *GuessType) GetTypeMap() map[string]int32

GetTypeMap method

type GuessUserRow

type GuessUserRow struct {
	*UserBet
}

GuessUserRow table meta 结构

func NewGuessUserRow

func NewGuessUserRow() *GuessUserRow

NewGuessUserRow 新建一个meta 结构

func (*GuessUserRow) CreateRow

func (tx *GuessUserRow) CreateRow() *table.Row

CreateRow 新建数据行(注意index 数据一定也要保存到数据中,不能就保存eventid)

func (*GuessUserRow) Get

func (tx *GuessUserRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*GuessUserRow) SetPayload

func (tx *GuessUserRow) SetPayload(data types.Message) error

SetPayload 设置数据

type QueryGuessGameInfo

type QueryGuessGameInfo struct {
	GameID     string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Addr       string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Status     int32  `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Index      int64  `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	AdminAddr  string `protobuf:"bytes,5,opt,name=adminAddr,proto3" json:"adminAddr,omitempty"`
	Category   string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"`
	PrimaryKey string `protobuf:"bytes,7,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
	// contains filtered or unexported fields
}

QueryGuessGameInfo 游戏信息查询消息

func (*QueryGuessGameInfo) Descriptor deprecated

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

Deprecated: Use QueryGuessGameInfo.ProtoReflect.Descriptor instead.

func (*QueryGuessGameInfo) GetAddr

func (x *QueryGuessGameInfo) GetAddr() string

func (*QueryGuessGameInfo) GetAdminAddr

func (x *QueryGuessGameInfo) GetAdminAddr() string

func (*QueryGuessGameInfo) GetCategory

func (x *QueryGuessGameInfo) GetCategory() string

func (*QueryGuessGameInfo) GetGameID

func (x *QueryGuessGameInfo) GetGameID() string

func (*QueryGuessGameInfo) GetIndex

func (x *QueryGuessGameInfo) GetIndex() int64

func (*QueryGuessGameInfo) GetPrimaryKey

func (x *QueryGuessGameInfo) GetPrimaryKey() string

func (*QueryGuessGameInfo) GetStatus

func (x *QueryGuessGameInfo) GetStatus() int32

func (*QueryGuessGameInfo) ProtoMessage

func (*QueryGuessGameInfo) ProtoMessage()

func (*QueryGuessGameInfo) ProtoReflect added in v1.65.3

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

func (*QueryGuessGameInfo) Reset

func (x *QueryGuessGameInfo) Reset()

func (*QueryGuessGameInfo) String

func (x *QueryGuessGameInfo) String() string

type QueryGuessGameInfos

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

QueryGuessGameInfos 游戏信息列表查询消息

func (*QueryGuessGameInfos) Descriptor deprecated

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

Deprecated: Use QueryGuessGameInfos.ProtoReflect.Descriptor instead.

func (*QueryGuessGameInfos) GetGameIDs

func (x *QueryGuessGameInfos) GetGameIDs() []string

func (*QueryGuessGameInfos) ProtoMessage

func (*QueryGuessGameInfos) ProtoMessage()

func (*QueryGuessGameInfos) ProtoReflect added in v1.65.3

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

func (*QueryGuessGameInfos) Reset

func (x *QueryGuessGameInfos) Reset()

func (*QueryGuessGameInfos) String

func (x *QueryGuessGameInfos) String() string

type ReceiptGuessGame

type ReceiptGuessGame struct {
	StartIndex   int64      `protobuf:"varint,1,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
	GameID       string     `protobuf:"bytes,2,opt,name=gameID,proto3" json:"gameID,omitempty"`
	PreStatus    int32      `protobuf:"varint,3,opt,name=preStatus,proto3" json:"preStatus,omitempty"`
	Status       int32      `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	Addr         string     `protobuf:"bytes,5,opt,name=addr,proto3" json:"addr,omitempty"`
	AdminAddr    string     `protobuf:"bytes,6,opt,name=adminAddr,proto3" json:"adminAddr,omitempty"`
	PreIndex     int64      `protobuf:"varint,7,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
	Index        int64      `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"`
	Category     string     `protobuf:"bytes,9,opt,name=category,proto3" json:"category,omitempty"`
	StatusChange bool       `protobuf:"varint,10,opt,name=statusChange,proto3" json:"statusChange,omitempty"`
	Bet          bool       `protobuf:"varint,11,opt,name=bet,proto3" json:"bet,omitempty"`
	Option       string     `protobuf:"bytes,12,opt,name=option,proto3" json:"option,omitempty"`
	BetsNumber   int64      `protobuf:"varint,13,opt,name=betsNumber,proto3" json:"betsNumber,omitempty"`
	Game         *GuessGame `protobuf:"bytes,14,opt,name=game,proto3" json:"game,omitempty"`
	// contains filtered or unexported fields
}

ReceiptGuessGame 竞猜游戏收据信息

func (*ReceiptGuessGame) Descriptor deprecated

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

Deprecated: Use ReceiptGuessGame.ProtoReflect.Descriptor instead.

func (*ReceiptGuessGame) GetAddr

func (x *ReceiptGuessGame) GetAddr() string

func (*ReceiptGuessGame) GetAdminAddr

func (x *ReceiptGuessGame) GetAdminAddr() string

func (*ReceiptGuessGame) GetBet

func (x *ReceiptGuessGame) GetBet() bool

func (*ReceiptGuessGame) GetBetsNumber

func (x *ReceiptGuessGame) GetBetsNumber() int64

func (*ReceiptGuessGame) GetCategory

func (x *ReceiptGuessGame) GetCategory() string

func (*ReceiptGuessGame) GetGame

func (x *ReceiptGuessGame) GetGame() *GuessGame

func (*ReceiptGuessGame) GetGameID

func (x *ReceiptGuessGame) GetGameID() string

func (*ReceiptGuessGame) GetIndex

func (x *ReceiptGuessGame) GetIndex() int64

func (*ReceiptGuessGame) GetOption

func (x *ReceiptGuessGame) GetOption() string

func (*ReceiptGuessGame) GetPreIndex

func (x *ReceiptGuessGame) GetPreIndex() int64

func (*ReceiptGuessGame) GetPreStatus

func (x *ReceiptGuessGame) GetPreStatus() int32

func (*ReceiptGuessGame) GetStartIndex

func (x *ReceiptGuessGame) GetStartIndex() int64

func (*ReceiptGuessGame) GetStatus

func (x *ReceiptGuessGame) GetStatus() int32

func (*ReceiptGuessGame) GetStatusChange

func (x *ReceiptGuessGame) GetStatusChange() bool

func (*ReceiptGuessGame) ProtoMessage

func (*ReceiptGuessGame) ProtoMessage()

func (*ReceiptGuessGame) ProtoReflect added in v1.65.3

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

func (*ReceiptGuessGame) Reset

func (x *ReceiptGuessGame) Reset()

func (*ReceiptGuessGame) String

func (x *ReceiptGuessGame) String() string

type ReplyGuessGameInfo

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

ReplyGuessGameInfo 游戏信息查询响应消息

func (*ReplyGuessGameInfo) Descriptor deprecated

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

Deprecated: Use ReplyGuessGameInfo.ProtoReflect.Descriptor instead.

func (*ReplyGuessGameInfo) GetGame

func (x *ReplyGuessGameInfo) GetGame() *GuessGame

func (*ReplyGuessGameInfo) ProtoMessage

func (*ReplyGuessGameInfo) ProtoMessage()

func (*ReplyGuessGameInfo) ProtoReflect added in v1.65.3

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

func (*ReplyGuessGameInfo) Reset

func (x *ReplyGuessGameInfo) Reset()

func (*ReplyGuessGameInfo) String

func (x *ReplyGuessGameInfo) String() string

type ReplyGuessGameInfos

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

ReplyGuessGameInfos 游戏信息列表查询响应消息

func (*ReplyGuessGameInfos) Descriptor deprecated

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

Deprecated: Use ReplyGuessGameInfos.ProtoReflect.Descriptor instead.

func (*ReplyGuessGameInfos) GetGames

func (x *ReplyGuessGameInfos) GetGames() []*GuessGame

func (*ReplyGuessGameInfos) ProtoMessage

func (*ReplyGuessGameInfos) ProtoMessage()

func (*ReplyGuessGameInfos) ProtoReflect added in v1.65.3

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

func (*ReplyGuessGameInfos) Reset

func (x *ReplyGuessGameInfos) Reset()

func (*ReplyGuessGameInfos) String

func (x *ReplyGuessGameInfos) String() string

type UnimplementedGuessServer

type UnimplementedGuessServer struct {
}

UnimplementedGuessServer can be embedded to have forward compatible implementations.

func (*UnimplementedGuessServer) GuessAbort

func (*UnimplementedGuessServer) GuessBet

func (*UnimplementedGuessServer) GuessPublish

func (*UnimplementedGuessServer) GuessStart

func (*UnimplementedGuessServer) GuessStopBet

type UserBet

type UserBet struct {
	StartIndex int64  `protobuf:"varint,1,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
	Index      int64  `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	GameID     string `protobuf:"bytes,3,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Addr       string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	Option     string `protobuf:"bytes,5,opt,name=option,proto3" json:"option,omitempty"`
	BetsNumber int64  `protobuf:"varint,6,opt,name=betsNumber,proto3" json:"betsNumber,omitempty"`
	// contains filtered or unexported fields
}

UserBet 用户下注信息

func (*UserBet) Descriptor deprecated

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

Deprecated: Use UserBet.ProtoReflect.Descriptor instead.

func (*UserBet) GetAddr

func (x *UserBet) GetAddr() string

func (*UserBet) GetBetsNumber

func (x *UserBet) GetBetsNumber() int64

func (*UserBet) GetGameID

func (x *UserBet) GetGameID() string

func (*UserBet) GetIndex

func (x *UserBet) GetIndex() int64

func (*UserBet) GetOption

func (x *UserBet) GetOption() string

func (*UserBet) GetStartIndex

func (x *UserBet) GetStartIndex() int64

func (*UserBet) ProtoMessage

func (*UserBet) ProtoMessage()

func (*UserBet) ProtoReflect added in v1.65.3

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

func (*UserBet) Reset

func (x *UserBet) Reset()

func (*UserBet) String

func (x *UserBet) String() string

Jump to

Keyboard shortcuts

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