types

package
v0.0.0-...-0abe6a2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	BlackwhiteStatusCreate = iota + 1
	BlackwhiteStatusPlay
	BlackwhiteStatusShow
	BlackwhiteStatusTimeout
	BlackwhiteStatusDone
)

status

View Source
const (
	// TyLogBlackwhiteCreate log for blackwhite create game
	TyLogBlackwhiteCreate = 750
	// TyLogBlackwhitePlay log for blackwhite play game
	TyLogBlackwhitePlay = 751
	// TyLogBlackwhiteShow log for blackwhite show game
	TyLogBlackwhiteShow = 752
	// TyLogBlackwhiteTimeout log for blackwhite timeout game
	TyLogBlackwhiteTimeout = 753
	// TyLogBlackwhiteDone log for blackwhite down game
	TyLogBlackwhiteDone = 754
	// TyLogBlackwhiteLoopInfo log for blackwhite LoopInfo game
	TyLogBlackwhiteLoopInfo = 755
)
View Source
const (
	// GetBlackwhiteRoundInfo 用于在cmd里面的区分不同的查询
	GetBlackwhiteRoundInfo = "GetBlackwhiteRoundInfo"
	// GetBlackwhiteByStatusAndAddr 用于在cmd里面的区分不同的查询
	GetBlackwhiteByStatusAndAddr = "GetBlackwhiteByStatusAndAddr"
	// GetBlackwhiteloopResult 用于在cmd里面的区分不同的查询
	GetBlackwhiteloopResult = "GetBlackwhiteloopResult"
)
View Source
const (
	// BlackwhiteActionCreate blackwhite create action
	BlackwhiteActionCreate = iota
	// BlackwhiteActionPlay blackwhite play action
	BlackwhiteActionPlay
	// BlackwhiteActionShow blackwhite show action
	BlackwhiteActionShow
	// BlackwhiteActionTimeoutDone blackwhite timeout action
	BlackwhiteActionTimeoutDone
)

blackwhite action type

Variables

View Source
var (
	// BlackwhiteX 执行器名字
	BlackwhiteX = "blackwhite"

	// JRPCName json RPC name
	JRPCName = "Blackwhite"
	// ExecerBlackwhite 执行器名字byte形式
	ExecerBlackwhite = []byte(BlackwhiteX)
)
View Source
var (
	// ErrIncorrectStatus 所处游戏状态不正确
	ErrIncorrectStatus = errors.New("ErrIncorrectStatus")
	// ErrRepeatPlayerAddr 重复玩家
	ErrRepeatPlayerAddr = errors.New("ErrRepeatPlayerAddress")
	// ErrNoTimeoutDone 还未超时
	ErrNoTimeoutDone = errors.New("ErrNoTimeoutDone")
	// ErrNoExistAddr 不存在地址,未参与游戏
	ErrNoExistAddr = errors.New("ErrNoExistAddress")
	// ErrNoLoopSeq 查询的轮次大于决出胜负的轮次
	ErrNoLoopSeq = errors.New("ErrBlackwhiteFinalloopLessThanSeq")
)

Functions

func RegisterBlackwhiteServer

func RegisterBlackwhiteServer(s *grpc.Server, srv BlackwhiteServer)

Types

type AddressResult

type AddressResult struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	HashValues           [][]byte `protobuf:"bytes,3,rep,name=hashValues,proto3" json:"hashValues,omitempty"`
	ShowSecret           string   `protobuf:"bytes,4,opt,name=showSecret,proto3" json:"showSecret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddressResult) Descriptor

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

func (*AddressResult) GetAddr

func (m *AddressResult) GetAddr() string

func (*AddressResult) GetAmount

func (m *AddressResult) GetAmount() int64

func (*AddressResult) GetHashValues

func (m *AddressResult) GetHashValues() [][]byte

func (*AddressResult) GetShowSecret

func (m *AddressResult) GetShowSecret() string

func (*AddressResult) ProtoMessage

func (*AddressResult) ProtoMessage()

func (*AddressResult) Reset

func (m *AddressResult) Reset()

func (*AddressResult) String

func (m *AddressResult) String() string

func (*AddressResult) XXX_DiscardUnknown

func (m *AddressResult) XXX_DiscardUnknown()

func (*AddressResult) XXX_Marshal

func (m *AddressResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddressResult) XXX_Merge

func (m *AddressResult) XXX_Merge(src proto.Message)

func (*AddressResult) XXX_Size

func (m *AddressResult) XXX_Size() int

func (*AddressResult) XXX_Unmarshal

func (m *AddressResult) XXX_Unmarshal(b []byte) error

type BlackwhiteAction

type BlackwhiteAction struct {
	// Types that are valid to be assigned to Value:
	//	*BlackwhiteAction_Create
	//	*BlackwhiteAction_Play
	//	*BlackwhiteAction_Show
	//	*BlackwhiteAction_TimeoutDone
	Value                isBlackwhiteAction_Value `protobuf_oneof:"value"`
	Ty                   int32                    `protobuf:"varint,6,opt,name=ty,proto3" json:"ty,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

actions

func (*BlackwhiteAction) Descriptor

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

func (*BlackwhiteAction) GetCreate

func (m *BlackwhiteAction) GetCreate() *BlackwhiteCreate

func (*BlackwhiteAction) GetPlay

func (m *BlackwhiteAction) GetPlay() *BlackwhitePlay

func (*BlackwhiteAction) GetShow

func (m *BlackwhiteAction) GetShow() *BlackwhiteShow

func (*BlackwhiteAction) GetTimeoutDone

func (m *BlackwhiteAction) GetTimeoutDone() *BlackwhiteTimeoutDone

func (*BlackwhiteAction) GetTy

func (m *BlackwhiteAction) GetTy() int32

func (*BlackwhiteAction) GetValue

func (m *BlackwhiteAction) GetValue() isBlackwhiteAction_Value

func (*BlackwhiteAction) ProtoMessage

func (*BlackwhiteAction) ProtoMessage()

func (*BlackwhiteAction) Reset

func (m *BlackwhiteAction) Reset()

func (*BlackwhiteAction) String

func (m *BlackwhiteAction) String() string

func (*BlackwhiteAction) XXX_DiscardUnknown

func (m *BlackwhiteAction) XXX_DiscardUnknown()

func (*BlackwhiteAction) XXX_Marshal

func (m *BlackwhiteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteAction) XXX_Merge

func (m *BlackwhiteAction) XXX_Merge(src proto.Message)

func (*BlackwhiteAction) XXX_OneofFuncs

func (*BlackwhiteAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*BlackwhiteAction) XXX_Size

func (m *BlackwhiteAction) XXX_Size() int

func (*BlackwhiteAction) XXX_Unmarshal

func (m *BlackwhiteAction) XXX_Unmarshal(b []byte) error

type BlackwhiteAction_Create

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

type BlackwhiteAction_Play

type BlackwhiteAction_Play struct {
	Play *BlackwhitePlay `protobuf:"bytes,2,opt,name=play,proto3,oneof"`
}

type BlackwhiteAction_Show

type BlackwhiteAction_Show struct {
	Show *BlackwhiteShow `protobuf:"bytes,3,opt,name=show,proto3,oneof"`
}

type BlackwhiteAction_TimeoutDone

type BlackwhiteAction_TimeoutDone struct {
	TimeoutDone *BlackwhiteTimeoutDone `protobuf:"bytes,4,opt,name=timeoutDone,proto3,oneof"`
}

type BlackwhiteByStatusAndAddr

type BlackwhiteByStatusAndAddr struct {
}

BlackwhiteByStatusAndAddr ...

func (*BlackwhiteByStatusAndAddr) Input

func (t *BlackwhiteByStatusAndAddr) Input(message json.RawMessage) ([]byte, error)

Input for convert struct

func (*BlackwhiteByStatusAndAddr) Output

func (t *BlackwhiteByStatusAndAddr) Output(reply interface{}) (interface{}, error)

Output for convert struct

type BlackwhiteClient

type BlackwhiteClient interface {
	// blackwhite 对外提供服务的接口
	//区块链接口
	Create(ctx context.Context, in *BlackwhiteCreate, opts ...grpc.CallOption) (*types.UnsignTx, error)
	//获取最新的区块头
	Show(ctx context.Context, in *BlackwhiteShow, opts ...grpc.CallOption) (*types.UnsignTx, error)
	//交易接口
	Play(ctx context.Context, in *BlackwhitePlay, opts ...grpc.CallOption) (*types.UnsignTx, error)
	TimeoutDone(ctx context.Context, in *BlackwhiteTimeoutDone, opts ...grpc.CallOption) (*types.UnsignTx, error)
}

BlackwhiteClient is the client API for Blackwhite service.

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

func NewBlackwhiteClient

func NewBlackwhiteClient(cc *grpc.ClientConn) BlackwhiteClient

type BlackwhiteCreate

type BlackwhiteCreate struct {
	PlayAmount           int64    `protobuf:"varint,1,opt,name=playAmount,proto3" json:"playAmount,omitempty"`
	PlayerCount          int32    `protobuf:"varint,2,opt,name=playerCount,proto3" json:"playerCount,omitempty"`
	Timeout              int64    `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	GameName             string   `protobuf:"bytes,4,opt,name=gameName,proto3" json:"gameName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhiteCreate) Descriptor

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

func (*BlackwhiteCreate) GetGameName

func (m *BlackwhiteCreate) GetGameName() string

func (*BlackwhiteCreate) GetPlayAmount

func (m *BlackwhiteCreate) GetPlayAmount() int64

func (*BlackwhiteCreate) GetPlayerCount

func (m *BlackwhiteCreate) GetPlayerCount() int32

func (*BlackwhiteCreate) GetTimeout

func (m *BlackwhiteCreate) GetTimeout() int64

func (*BlackwhiteCreate) ProtoMessage

func (*BlackwhiteCreate) ProtoMessage()

func (*BlackwhiteCreate) Reset

func (m *BlackwhiteCreate) Reset()

func (*BlackwhiteCreate) String

func (m *BlackwhiteCreate) String() string

func (*BlackwhiteCreate) XXX_DiscardUnknown

func (m *BlackwhiteCreate) XXX_DiscardUnknown()

func (*BlackwhiteCreate) XXX_Marshal

func (m *BlackwhiteCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteCreate) XXX_Merge

func (m *BlackwhiteCreate) XXX_Merge(src proto.Message)

func (*BlackwhiteCreate) XXX_Size

func (m *BlackwhiteCreate) XXX_Size() int

func (*BlackwhiteCreate) XXX_Unmarshal

func (m *BlackwhiteCreate) XXX_Unmarshal(b []byte) error

type BlackwhiteCreateTxReq

type BlackwhiteCreateTxReq struct {
	PlayAmount           int64    `protobuf:"varint,1,opt,name=PlayAmount,proto3" json:"PlayAmount,omitempty"`
	PlayerCount          int32    `protobuf:"varint,2,opt,name=PlayerCount,proto3" json:"PlayerCount,omitempty"`
	Timeout              int64    `protobuf:"varint,3,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
	GameName             string   `protobuf:"bytes,4,opt,name=GameName,proto3" json:"GameName,omitempty"`
	Fee                  int64    `protobuf:"varint,5,opt,name=Fee,proto3" json:"Fee,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhiteCreateTxReq) Descriptor

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

func (*BlackwhiteCreateTxReq) GetFee

func (m *BlackwhiteCreateTxReq) GetFee() int64

func (*BlackwhiteCreateTxReq) GetGameName

func (m *BlackwhiteCreateTxReq) GetGameName() string

func (*BlackwhiteCreateTxReq) GetPlayAmount

func (m *BlackwhiteCreateTxReq) GetPlayAmount() int64

func (*BlackwhiteCreateTxReq) GetPlayerCount

func (m *BlackwhiteCreateTxReq) GetPlayerCount() int32

func (*BlackwhiteCreateTxReq) GetTimeout

func (m *BlackwhiteCreateTxReq) GetTimeout() int64

func (*BlackwhiteCreateTxReq) ProtoMessage

func (*BlackwhiteCreateTxReq) ProtoMessage()

func (*BlackwhiteCreateTxReq) Reset

func (m *BlackwhiteCreateTxReq) Reset()

func (*BlackwhiteCreateTxReq) String

func (m *BlackwhiteCreateTxReq) String() string

func (*BlackwhiteCreateTxReq) XXX_DiscardUnknown

func (m *BlackwhiteCreateTxReq) XXX_DiscardUnknown()

func (*BlackwhiteCreateTxReq) XXX_Marshal

func (m *BlackwhiteCreateTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteCreateTxReq) XXX_Merge

func (m *BlackwhiteCreateTxReq) XXX_Merge(src proto.Message)

func (*BlackwhiteCreateTxReq) XXX_Size

func (m *BlackwhiteCreateTxReq) XXX_Size() int

func (*BlackwhiteCreateTxReq) XXX_Unmarshal

func (m *BlackwhiteCreateTxReq) XXX_Unmarshal(b []byte) error

type BlackwhitePlay

type BlackwhitePlay struct {
	GameID               string   `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	HashValues           [][]byte `protobuf:"bytes,3,rep,name=hashValues,proto3" json:"hashValues,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhitePlay) Descriptor

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

func (*BlackwhitePlay) GetAmount

func (m *BlackwhitePlay) GetAmount() int64

func (*BlackwhitePlay) GetGameID

func (m *BlackwhitePlay) GetGameID() string

func (*BlackwhitePlay) GetHashValues

func (m *BlackwhitePlay) GetHashValues() [][]byte

func (*BlackwhitePlay) ProtoMessage

func (*BlackwhitePlay) ProtoMessage()

func (*BlackwhitePlay) Reset

func (m *BlackwhitePlay) Reset()

func (*BlackwhitePlay) String

func (m *BlackwhitePlay) String() string

func (*BlackwhitePlay) XXX_DiscardUnknown

func (m *BlackwhitePlay) XXX_DiscardUnknown()

func (*BlackwhitePlay) XXX_Marshal

func (m *BlackwhitePlay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhitePlay) XXX_Merge

func (m *BlackwhitePlay) XXX_Merge(src proto.Message)

func (*BlackwhitePlay) XXX_Size

func (m *BlackwhitePlay) XXX_Size() int

func (*BlackwhitePlay) XXX_Unmarshal

func (m *BlackwhitePlay) XXX_Unmarshal(b []byte) error

type BlackwhitePlayTxReq

type BlackwhitePlayTxReq struct {
	GameID               string   `protobuf:"bytes,1,opt,name=GameID,proto3" json:"GameID,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
	HashValues           [][]byte `protobuf:"bytes,3,rep,name=HashValues,proto3" json:"HashValues,omitempty"`
	Fee                  int64    `protobuf:"varint,4,opt,name=Fee,proto3" json:"Fee,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhitePlayTxReq) Descriptor

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

func (*BlackwhitePlayTxReq) GetAmount

func (m *BlackwhitePlayTxReq) GetAmount() int64

func (*BlackwhitePlayTxReq) GetFee

func (m *BlackwhitePlayTxReq) GetFee() int64

func (*BlackwhitePlayTxReq) GetGameID

func (m *BlackwhitePlayTxReq) GetGameID() string

func (*BlackwhitePlayTxReq) GetHashValues

func (m *BlackwhitePlayTxReq) GetHashValues() [][]byte

func (*BlackwhitePlayTxReq) ProtoMessage

func (*BlackwhitePlayTxReq) ProtoMessage()

func (*BlackwhitePlayTxReq) Reset

func (m *BlackwhitePlayTxReq) Reset()

func (*BlackwhitePlayTxReq) String

func (m *BlackwhitePlayTxReq) String() string

func (*BlackwhitePlayTxReq) XXX_DiscardUnknown

func (m *BlackwhitePlayTxReq) XXX_DiscardUnknown()

func (*BlackwhitePlayTxReq) XXX_Marshal

func (m *BlackwhitePlayTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhitePlayTxReq) XXX_Merge

func (m *BlackwhitePlayTxReq) XXX_Merge(src proto.Message)

func (*BlackwhitePlayTxReq) XXX_Size

func (m *BlackwhitePlayTxReq) XXX_Size() int

func (*BlackwhitePlayTxReq) XXX_Unmarshal

func (m *BlackwhitePlayTxReq) XXX_Unmarshal(b []byte) error

type BlackwhiteRound

type BlackwhiteRound struct {
	// txhash
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	// create -> play(timeout) -> show -> done
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// 游戏押金可大于
	PlayAmount int64 `protobuf:"varint,3,opt,name=playAmount,proto3" json:"playAmount,omitempty"`
	// 游戏人数
	PlayerCount int32 `protobuf:"varint,4,opt,name=playerCount,proto3" json:"playerCount,omitempty"`
	// 当前游戏人数
	CurPlayerCount int32 `protobuf:"varint,5,opt,name=curPlayerCount,proto3" json:"curPlayerCount,omitempty"`
	// 游戏需要比对次数
	Loop int32 `protobuf:"varint,6,opt,name=loop,proto3" json:"loop,omitempty"`
	// 当前出示密钥人数
	CurShowCount int32 `protobuf:"varint,7,opt,name=curShowCount,proto3" json:"curShowCount,omitempty"`
	// 创建游戏时间
	CreateTime int64 `protobuf:"varint,8,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// 出示密钥开始时间
	ShowTime int64 `protobuf:"varint,9,opt,name=showTime,proto3" json:"showTime,omitempty"`
	// 超时时间
	Timeout int64 `protobuf:"varint,10,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// 创建游戏地址
	CreateAddr string `protobuf:"bytes,11,opt,name=createAddr,proto3" json:"createAddr,omitempty"`
	// 游戏名称
	GameName string `protobuf:"bytes,12,opt,name=gameName,proto3" json:"gameName,omitempty"`
	// 游戏加密结果
	AddrResult []*AddressResult `protobuf:"bytes,13,rep,name=addrResult,proto3" json:"addrResult,omitempty"`
	// 游戏赢家
	Winner []string `protobuf:"bytes,14,rep,name=winner,proto3" json:"winner,omitempty"`
	// block高度以及索引值
	Index                int64    `protobuf:"varint,15,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

order

func (*BlackwhiteRound) Descriptor

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

func (*BlackwhiteRound) GetAddrResult

func (m *BlackwhiteRound) GetAddrResult() []*AddressResult

func (*BlackwhiteRound) GetCreateAddr

func (m *BlackwhiteRound) GetCreateAddr() string

func (*BlackwhiteRound) GetCreateTime

func (m *BlackwhiteRound) GetCreateTime() int64

func (*BlackwhiteRound) GetCurPlayerCount

func (m *BlackwhiteRound) GetCurPlayerCount() int32

func (*BlackwhiteRound) GetCurShowCount

func (m *BlackwhiteRound) GetCurShowCount() int32

func (*BlackwhiteRound) GetGameID

func (m *BlackwhiteRound) GetGameID() string

func (*BlackwhiteRound) GetGameName

func (m *BlackwhiteRound) GetGameName() string

func (*BlackwhiteRound) GetIndex

func (m *BlackwhiteRound) GetIndex() int64

func (*BlackwhiteRound) GetLoop

func (m *BlackwhiteRound) GetLoop() int32

func (*BlackwhiteRound) GetPlayAmount

func (m *BlackwhiteRound) GetPlayAmount() int64

func (*BlackwhiteRound) GetPlayerCount

func (m *BlackwhiteRound) GetPlayerCount() int32

func (*BlackwhiteRound) GetShowTime

func (m *BlackwhiteRound) GetShowTime() int64

func (*BlackwhiteRound) GetStatus

func (m *BlackwhiteRound) GetStatus() int32

func (*BlackwhiteRound) GetTimeout

func (m *BlackwhiteRound) GetTimeout() int64

func (*BlackwhiteRound) GetWinner

func (m *BlackwhiteRound) GetWinner() []string

func (*BlackwhiteRound) ProtoMessage

func (*BlackwhiteRound) ProtoMessage()

func (*BlackwhiteRound) Reset

func (m *BlackwhiteRound) Reset()

func (*BlackwhiteRound) String

func (m *BlackwhiteRound) String() string

func (*BlackwhiteRound) XXX_DiscardUnknown

func (m *BlackwhiteRound) XXX_DiscardUnknown()

func (*BlackwhiteRound) XXX_Marshal

func (m *BlackwhiteRound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteRound) XXX_Merge

func (m *BlackwhiteRound) XXX_Merge(src proto.Message)

func (*BlackwhiteRound) XXX_Size

func (m *BlackwhiteRound) XXX_Size() int

func (*BlackwhiteRound) XXX_Unmarshal

func (m *BlackwhiteRound) XXX_Unmarshal(b []byte) error

type BlackwhiteRoundInfo

type BlackwhiteRoundInfo struct {
}

BlackwhiteRoundInfo ...

func (*BlackwhiteRoundInfo) Input

func (t *BlackwhiteRoundInfo) Input(message json.RawMessage) ([]byte, error)

Input for convert struct

func (*BlackwhiteRoundInfo) Output

func (t *BlackwhiteRoundInfo) Output(reply interface{}) (interface{}, error)

Output for convert struct

type BlackwhiteRoundResult

type BlackwhiteRoundResult struct {
	// txhash
	GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	// create -> play(timeout) -> show -> done
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// 游戏押金可大于
	PlayAmount int64 `protobuf:"varint,3,opt,name=playAmount,proto3" json:"playAmount,omitempty"`
	// 游戏人数
	PlayerCount int32 `protobuf:"varint,4,opt,name=playerCount,proto3" json:"playerCount,omitempty"`
	// 当前游戏人数
	CurPlayerCount int32 `protobuf:"varint,5,opt,name=curPlayerCount,proto3" json:"curPlayerCount,omitempty"`
	// 游戏需要比对次数
	Loop int32 `protobuf:"varint,6,opt,name=loop,proto3" json:"loop,omitempty"`
	// 当前出示密钥人数
	CurShowCount int32 `protobuf:"varint,7,opt,name=curShowCount,proto3" json:"curShowCount,omitempty"`
	// 创建游戏时间
	CreateTime int64 `protobuf:"varint,8,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// 出示密钥开始时间
	ShowTime int64 `protobuf:"varint,9,opt,name=showTime,proto3" json:"showTime,omitempty"`
	// 超时时间
	Timeout int64 `protobuf:"varint,10,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// 创建游戏地址
	CreateAddr string `protobuf:"bytes,11,opt,name=createAddr,proto3" json:"createAddr,omitempty"`
	// 游戏名称
	GameName string `protobuf:"bytes,12,opt,name=gameName,proto3" json:"gameName,omitempty"`
	// 游戏加密结果
	AddrResult []*AddressResult `protobuf:"bytes,13,rep,name=addrResult,proto3" json:"addrResult,omitempty"`
	// 游戏赢家
	Winner []string `protobuf:"bytes,14,rep,name=winner,proto3" json:"winner,omitempty"`
	// block高度以及索引值
	Index                int64    `protobuf:"varint,15,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhiteRoundResult) Descriptor

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

func (*BlackwhiteRoundResult) GetAddrResult

func (m *BlackwhiteRoundResult) GetAddrResult() []*AddressResult

func (*BlackwhiteRoundResult) GetCreateAddr

func (m *BlackwhiteRoundResult) GetCreateAddr() string

func (*BlackwhiteRoundResult) GetCreateTime

func (m *BlackwhiteRoundResult) GetCreateTime() int64

func (*BlackwhiteRoundResult) GetCurPlayerCount

func (m *BlackwhiteRoundResult) GetCurPlayerCount() int32

func (*BlackwhiteRoundResult) GetCurShowCount

func (m *BlackwhiteRoundResult) GetCurShowCount() int32

func (*BlackwhiteRoundResult) GetGameID

func (m *BlackwhiteRoundResult) GetGameID() string

func (*BlackwhiteRoundResult) GetGameName

func (m *BlackwhiteRoundResult) GetGameName() string

func (*BlackwhiteRoundResult) GetIndex

func (m *BlackwhiteRoundResult) GetIndex() int64

func (*BlackwhiteRoundResult) GetLoop

func (m *BlackwhiteRoundResult) GetLoop() int32

func (*BlackwhiteRoundResult) GetPlayAmount

func (m *BlackwhiteRoundResult) GetPlayAmount() int64

func (*BlackwhiteRoundResult) GetPlayerCount

func (m *BlackwhiteRoundResult) GetPlayerCount() int32

func (*BlackwhiteRoundResult) GetShowTime

func (m *BlackwhiteRoundResult) GetShowTime() int64

func (*BlackwhiteRoundResult) GetStatus

func (m *BlackwhiteRoundResult) GetStatus() int32

func (*BlackwhiteRoundResult) GetTimeout

func (m *BlackwhiteRoundResult) GetTimeout() int64

func (*BlackwhiteRoundResult) GetWinner

func (m *BlackwhiteRoundResult) GetWinner() []string

func (*BlackwhiteRoundResult) ProtoMessage

func (*BlackwhiteRoundResult) ProtoMessage()

func (*BlackwhiteRoundResult) Reset

func (m *BlackwhiteRoundResult) Reset()

func (*BlackwhiteRoundResult) String

func (m *BlackwhiteRoundResult) String() string

func (*BlackwhiteRoundResult) XXX_DiscardUnknown

func (m *BlackwhiteRoundResult) XXX_DiscardUnknown()

func (*BlackwhiteRoundResult) XXX_Marshal

func (m *BlackwhiteRoundResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteRoundResult) XXX_Merge

func (m *BlackwhiteRoundResult) XXX_Merge(src proto.Message)

func (*BlackwhiteRoundResult) XXX_Size

func (m *BlackwhiteRoundResult) XXX_Size() int

func (*BlackwhiteRoundResult) XXX_Unmarshal

func (m *BlackwhiteRoundResult) XXX_Unmarshal(b []byte) error

type BlackwhiteServer

type BlackwhiteServer interface {
	// blackwhite 对外提供服务的接口
	//区块链接口
	Create(context.Context, *BlackwhiteCreate) (*types.UnsignTx, error)
	//获取最新的区块头
	Show(context.Context, *BlackwhiteShow) (*types.UnsignTx, error)
	//交易接口
	Play(context.Context, *BlackwhitePlay) (*types.UnsignTx, error)
	TimeoutDone(context.Context, *BlackwhiteTimeoutDone) (*types.UnsignTx, error)
}

BlackwhiteServer is the server API for Blackwhite service.

type BlackwhiteShow

type BlackwhiteShow 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhiteShow) Descriptor

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

func (*BlackwhiteShow) GetGameID

func (m *BlackwhiteShow) GetGameID() string

func (*BlackwhiteShow) GetSecret

func (m *BlackwhiteShow) GetSecret() string

func (*BlackwhiteShow) ProtoMessage

func (*BlackwhiteShow) ProtoMessage()

func (*BlackwhiteShow) Reset

func (m *BlackwhiteShow) Reset()

func (*BlackwhiteShow) String

func (m *BlackwhiteShow) String() string

func (*BlackwhiteShow) XXX_DiscardUnknown

func (m *BlackwhiteShow) XXX_DiscardUnknown()

func (*BlackwhiteShow) XXX_Marshal

func (m *BlackwhiteShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteShow) XXX_Merge

func (m *BlackwhiteShow) XXX_Merge(src proto.Message)

func (*BlackwhiteShow) XXX_Size

func (m *BlackwhiteShow) XXX_Size() int

func (*BlackwhiteShow) XXX_Unmarshal

func (m *BlackwhiteShow) XXX_Unmarshal(b []byte) error

type BlackwhiteShowTxReq

type BlackwhiteShowTxReq 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"`
	Fee                  int64    `protobuf:"varint,3,opt,name=Fee,proto3" json:"Fee,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhiteShowTxReq) Descriptor

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

func (*BlackwhiteShowTxReq) GetFee

func (m *BlackwhiteShowTxReq) GetFee() int64

func (*BlackwhiteShowTxReq) GetGameID

func (m *BlackwhiteShowTxReq) GetGameID() string

func (*BlackwhiteShowTxReq) GetSecret

func (m *BlackwhiteShowTxReq) GetSecret() string

func (*BlackwhiteShowTxReq) ProtoMessage

func (*BlackwhiteShowTxReq) ProtoMessage()

func (*BlackwhiteShowTxReq) Reset

func (m *BlackwhiteShowTxReq) Reset()

func (*BlackwhiteShowTxReq) String

func (m *BlackwhiteShowTxReq) String() string

func (*BlackwhiteShowTxReq) XXX_DiscardUnknown

func (m *BlackwhiteShowTxReq) XXX_DiscardUnknown()

func (*BlackwhiteShowTxReq) XXX_Marshal

func (m *BlackwhiteShowTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteShowTxReq) XXX_Merge

func (m *BlackwhiteShowTxReq) XXX_Merge(src proto.Message)

func (*BlackwhiteShowTxReq) XXX_Size

func (m *BlackwhiteShowTxReq) XXX_Size() int

func (*BlackwhiteShowTxReq) XXX_Unmarshal

func (m *BlackwhiteShowTxReq) XXX_Unmarshal(b []byte) error

type BlackwhiteTimeoutDone

type BlackwhiteTimeoutDone struct {
	GameID               string   `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhiteTimeoutDone) Descriptor

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

func (*BlackwhiteTimeoutDone) GetGameID

func (m *BlackwhiteTimeoutDone) GetGameID() string

func (*BlackwhiteTimeoutDone) ProtoMessage

func (*BlackwhiteTimeoutDone) ProtoMessage()

func (*BlackwhiteTimeoutDone) Reset

func (m *BlackwhiteTimeoutDone) Reset()

func (*BlackwhiteTimeoutDone) String

func (m *BlackwhiteTimeoutDone) String() string

func (*BlackwhiteTimeoutDone) XXX_DiscardUnknown

func (m *BlackwhiteTimeoutDone) XXX_DiscardUnknown()

func (*BlackwhiteTimeoutDone) XXX_Marshal

func (m *BlackwhiteTimeoutDone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteTimeoutDone) XXX_Merge

func (m *BlackwhiteTimeoutDone) XXX_Merge(src proto.Message)

func (*BlackwhiteTimeoutDone) XXX_Size

func (m *BlackwhiteTimeoutDone) XXX_Size() int

func (*BlackwhiteTimeoutDone) XXX_Unmarshal

func (m *BlackwhiteTimeoutDone) XXX_Unmarshal(b []byte) error

type BlackwhiteTimeoutDoneTxReq

type BlackwhiteTimeoutDoneTxReq 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlackwhiteTimeoutDoneTxReq) Descriptor

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

func (*BlackwhiteTimeoutDoneTxReq) GetFee

func (m *BlackwhiteTimeoutDoneTxReq) GetFee() int64

func (*BlackwhiteTimeoutDoneTxReq) GetGameID

func (m *BlackwhiteTimeoutDoneTxReq) GetGameID() string

func (*BlackwhiteTimeoutDoneTxReq) ProtoMessage

func (*BlackwhiteTimeoutDoneTxReq) ProtoMessage()

func (*BlackwhiteTimeoutDoneTxReq) Reset

func (m *BlackwhiteTimeoutDoneTxReq) Reset()

func (*BlackwhiteTimeoutDoneTxReq) String

func (m *BlackwhiteTimeoutDoneTxReq) String() string

func (*BlackwhiteTimeoutDoneTxReq) XXX_DiscardUnknown

func (m *BlackwhiteTimeoutDoneTxReq) XXX_DiscardUnknown()

func (*BlackwhiteTimeoutDoneTxReq) XXX_Marshal

func (m *BlackwhiteTimeoutDoneTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlackwhiteTimeoutDoneTxReq) XXX_Merge

func (m *BlackwhiteTimeoutDoneTxReq) XXX_Merge(src proto.Message)

func (*BlackwhiteTimeoutDoneTxReq) XXX_Size

func (m *BlackwhiteTimeoutDoneTxReq) XXX_Size() int

func (*BlackwhiteTimeoutDoneTxReq) XXX_Unmarshal

func (m *BlackwhiteTimeoutDoneTxReq) XXX_Unmarshal(b []byte) error

type BlackwhiteType

type BlackwhiteType struct {
	types.ExecTypeBase
}

BlackwhiteType 执行器基类结构体

func NewType

func NewType() *BlackwhiteType

NewType 创建执行器类型

func (BlackwhiteType) ActionName

func (b BlackwhiteType) ActionName(tx *types.Transaction) string

ActionName 根据交易的payLoad获取blackwhite的action的name

func (BlackwhiteType) Amount

func (b BlackwhiteType) Amount(tx *types.Transaction) (int64, error)

Amount ...

func (BlackwhiteType) CreateTx

func (b BlackwhiteType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)

CreateTx ... TODO 暂时不修改实现, 先完成结构的重构

func (*BlackwhiteType) GetLogMap

func (b *BlackwhiteType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取log的映射对应关系

func (*BlackwhiteType) GetName

func (b *BlackwhiteType) GetName() string

GetName 获取执行器名称

func (*BlackwhiteType) GetPayload

func (b *BlackwhiteType) GetPayload() types.Message

GetPayload 获取blackwhite action

func (*BlackwhiteType) GetTypeMap

func (b *BlackwhiteType) GetTypeMap() map[string]int32

GetTypeMap 根据action的name获取type

type BlackwhiteloopResult

type BlackwhiteloopResult struct {
}

BlackwhiteloopResult ...

func (*BlackwhiteloopResult) Input

func (t *BlackwhiteloopResult) Input(message json.RawMessage) ([]byte, error)

Input for convert struct

func (*BlackwhiteloopResult) Output

func (t *BlackwhiteloopResult) Output(reply interface{}) (interface{}, error)

Output for convert struct

type PerLoopResult

type PerLoopResult struct {
	Winers               []string `protobuf:"bytes,1,rep,name=winers,proto3" json:"winers,omitempty"`
	Losers               []string `protobuf:"bytes,2,rep,name=losers,proto3" json:"losers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PerLoopResult) Descriptor

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

func (*PerLoopResult) GetLosers

func (m *PerLoopResult) GetLosers() []string

func (*PerLoopResult) GetWiners

func (m *PerLoopResult) GetWiners() []string

func (*PerLoopResult) ProtoMessage

func (*PerLoopResult) ProtoMessage()

func (*PerLoopResult) Reset

func (m *PerLoopResult) Reset()

func (*PerLoopResult) String

func (m *PerLoopResult) String() string

func (*PerLoopResult) XXX_DiscardUnknown

func (m *PerLoopResult) XXX_DiscardUnknown()

func (*PerLoopResult) XXX_Marshal

func (m *PerLoopResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PerLoopResult) XXX_Merge

func (m *PerLoopResult) XXX_Merge(src proto.Message)

func (*PerLoopResult) XXX_Size

func (m *PerLoopResult) XXX_Size() int

func (*PerLoopResult) XXX_Unmarshal

func (m *PerLoopResult) XXX_Unmarshal(b []byte) error

type ReceiptBlackwhite

type ReceiptBlackwhite struct {
	Round                *BlackwhiteRound `protobuf:"bytes,1,opt,name=round,proto3" json:"round,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

logs

func (*ReceiptBlackwhite) Descriptor

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

func (*ReceiptBlackwhite) GetRound

func (m *ReceiptBlackwhite) GetRound() *BlackwhiteRound

func (*ReceiptBlackwhite) ProtoMessage

func (*ReceiptBlackwhite) ProtoMessage()

func (*ReceiptBlackwhite) Reset

func (m *ReceiptBlackwhite) Reset()

func (*ReceiptBlackwhite) String

func (m *ReceiptBlackwhite) String() string

func (*ReceiptBlackwhite) XXX_DiscardUnknown

func (m *ReceiptBlackwhite) XXX_DiscardUnknown()

func (*ReceiptBlackwhite) XXX_Marshal

func (m *ReceiptBlackwhite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptBlackwhite) XXX_Merge

func (m *ReceiptBlackwhite) XXX_Merge(src proto.Message)

func (*ReceiptBlackwhite) XXX_Size

func (m *ReceiptBlackwhite) XXX_Size() int

func (*ReceiptBlackwhite) XXX_Unmarshal

func (m *ReceiptBlackwhite) XXX_Unmarshal(b []byte) error

type ReceiptBlackwhiteStatus

type ReceiptBlackwhiteStatus 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"`
	Index                int64    `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReceiptBlackwhiteStatus) Descriptor

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

func (*ReceiptBlackwhiteStatus) GetAddr

func (m *ReceiptBlackwhiteStatus) GetAddr() string

func (*ReceiptBlackwhiteStatus) GetGameID

func (m *ReceiptBlackwhiteStatus) GetGameID() string

func (*ReceiptBlackwhiteStatus) GetIndex

func (m *ReceiptBlackwhiteStatus) GetIndex() int64

func (*ReceiptBlackwhiteStatus) GetPrevStatus

func (m *ReceiptBlackwhiteStatus) GetPrevStatus() int32

func (*ReceiptBlackwhiteStatus) GetStatus

func (m *ReceiptBlackwhiteStatus) GetStatus() int32

func (*ReceiptBlackwhiteStatus) ProtoMessage

func (*ReceiptBlackwhiteStatus) ProtoMessage()

func (*ReceiptBlackwhiteStatus) Reset

func (m *ReceiptBlackwhiteStatus) Reset()

func (*ReceiptBlackwhiteStatus) String

func (m *ReceiptBlackwhiteStatus) String() string

func (*ReceiptBlackwhiteStatus) XXX_DiscardUnknown

func (m *ReceiptBlackwhiteStatus) XXX_DiscardUnknown()

func (*ReceiptBlackwhiteStatus) XXX_Marshal

func (m *ReceiptBlackwhiteStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiptBlackwhiteStatus) XXX_Merge

func (m *ReceiptBlackwhiteStatus) XXX_Merge(src proto.Message)

func (*ReceiptBlackwhiteStatus) XXX_Size

func (m *ReceiptBlackwhiteStatus) XXX_Size() int

func (*ReceiptBlackwhiteStatus) XXX_Unmarshal

func (m *ReceiptBlackwhiteStatus) XXX_Unmarshal(b []byte) error

type ReplyBlackwhiteRoundInfo

type ReplyBlackwhiteRoundInfo struct {
	Round                *BlackwhiteRoundResult `protobuf:"bytes,1,opt,name=round,proto3" json:"round,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*ReplyBlackwhiteRoundInfo) Descriptor

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

func (*ReplyBlackwhiteRoundInfo) GetRound

func (*ReplyBlackwhiteRoundInfo) ProtoMessage

func (*ReplyBlackwhiteRoundInfo) ProtoMessage()

func (*ReplyBlackwhiteRoundInfo) Reset

func (m *ReplyBlackwhiteRoundInfo) Reset()

func (*ReplyBlackwhiteRoundInfo) String

func (m *ReplyBlackwhiteRoundInfo) String() string

func (*ReplyBlackwhiteRoundInfo) XXX_DiscardUnknown

func (m *ReplyBlackwhiteRoundInfo) XXX_DiscardUnknown()

func (*ReplyBlackwhiteRoundInfo) XXX_Marshal

func (m *ReplyBlackwhiteRoundInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyBlackwhiteRoundInfo) XXX_Merge

func (m *ReplyBlackwhiteRoundInfo) XXX_Merge(src proto.Message)

func (*ReplyBlackwhiteRoundInfo) XXX_Size

func (m *ReplyBlackwhiteRoundInfo) XXX_Size() int

func (*ReplyBlackwhiteRoundInfo) XXX_Unmarshal

func (m *ReplyBlackwhiteRoundInfo) XXX_Unmarshal(b []byte) error

type ReplyBlackwhiteRoundList

type ReplyBlackwhiteRoundList struct {
	Round                []*BlackwhiteRoundResult `protobuf:"bytes,1,rep,name=round,proto3" json:"round,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*ReplyBlackwhiteRoundList) Descriptor

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

func (*ReplyBlackwhiteRoundList) GetRound

func (*ReplyBlackwhiteRoundList) ProtoMessage

func (*ReplyBlackwhiteRoundList) ProtoMessage()

func (*ReplyBlackwhiteRoundList) Reset

func (m *ReplyBlackwhiteRoundList) Reset()

func (*ReplyBlackwhiteRoundList) String

func (m *ReplyBlackwhiteRoundList) String() string

func (*ReplyBlackwhiteRoundList) XXX_DiscardUnknown

func (m *ReplyBlackwhiteRoundList) XXX_DiscardUnknown()

func (*ReplyBlackwhiteRoundList) XXX_Marshal

func (m *ReplyBlackwhiteRoundList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyBlackwhiteRoundList) XXX_Merge

func (m *ReplyBlackwhiteRoundList) XXX_Merge(src proto.Message)

func (*ReplyBlackwhiteRoundList) XXX_Size

func (m *ReplyBlackwhiteRoundList) XXX_Size() int

func (*ReplyBlackwhiteRoundList) XXX_Unmarshal

func (m *ReplyBlackwhiteRoundList) XXX_Unmarshal(b []byte) error

type ReplyLoopResults

type ReplyLoopResults struct {
	GameID               string           `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	Results              []*PerLoopResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*ReplyLoopResults) Descriptor

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

func (*ReplyLoopResults) GetGameID

func (m *ReplyLoopResults) GetGameID() string

func (*ReplyLoopResults) GetResults

func (m *ReplyLoopResults) GetResults() []*PerLoopResult

func (*ReplyLoopResults) ProtoMessage

func (*ReplyLoopResults) ProtoMessage()

func (*ReplyLoopResults) Reset

func (m *ReplyLoopResults) Reset()

func (*ReplyLoopResults) String

func (m *ReplyLoopResults) String() string

func (*ReplyLoopResults) XXX_DiscardUnknown

func (m *ReplyLoopResults) XXX_DiscardUnknown()

func (*ReplyLoopResults) XXX_Marshal

func (m *ReplyLoopResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyLoopResults) XXX_Merge

func (m *ReplyLoopResults) XXX_Merge(src proto.Message)

func (*ReplyLoopResults) XXX_Size

func (m *ReplyLoopResults) XXX_Size() int

func (*ReplyLoopResults) XXX_Unmarshal

func (m *ReplyLoopResults) XXX_Unmarshal(b []byte) error

type ReqBlackwhiteRoundInfo

type ReqBlackwhiteRoundInfo struct {
	GameID               string   `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqBlackwhiteRoundInfo) Descriptor

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

func (*ReqBlackwhiteRoundInfo) GetGameID

func (m *ReqBlackwhiteRoundInfo) GetGameID() string

func (*ReqBlackwhiteRoundInfo) ProtoMessage

func (*ReqBlackwhiteRoundInfo) ProtoMessage()

func (*ReqBlackwhiteRoundInfo) Reset

func (m *ReqBlackwhiteRoundInfo) Reset()

func (*ReqBlackwhiteRoundInfo) String

func (m *ReqBlackwhiteRoundInfo) String() string

func (*ReqBlackwhiteRoundInfo) XXX_DiscardUnknown

func (m *ReqBlackwhiteRoundInfo) XXX_DiscardUnknown()

func (*ReqBlackwhiteRoundInfo) XXX_Marshal

func (m *ReqBlackwhiteRoundInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqBlackwhiteRoundInfo) XXX_Merge

func (m *ReqBlackwhiteRoundInfo) XXX_Merge(src proto.Message)

func (*ReqBlackwhiteRoundInfo) XXX_Size

func (m *ReqBlackwhiteRoundInfo) XXX_Size() int

func (*ReqBlackwhiteRoundInfo) XXX_Unmarshal

func (m *ReqBlackwhiteRoundInfo) XXX_Unmarshal(b []byte) error

type ReqBlackwhiteRoundList

type ReqBlackwhiteRoundList 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"`
	Count                int32    `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Direction            int32    `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	Index                int64    `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqBlackwhiteRoundList) Descriptor

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

func (*ReqBlackwhiteRoundList) GetAddress

func (m *ReqBlackwhiteRoundList) GetAddress() string

func (*ReqBlackwhiteRoundList) GetCount

func (m *ReqBlackwhiteRoundList) GetCount() int32

func (*ReqBlackwhiteRoundList) GetDirection

func (m *ReqBlackwhiteRoundList) GetDirection() int32

func (*ReqBlackwhiteRoundList) GetIndex

func (m *ReqBlackwhiteRoundList) GetIndex() int64

func (*ReqBlackwhiteRoundList) GetStatus

func (m *ReqBlackwhiteRoundList) GetStatus() int32

func (*ReqBlackwhiteRoundList) ProtoMessage

func (*ReqBlackwhiteRoundList) ProtoMessage()

func (*ReqBlackwhiteRoundList) Reset

func (m *ReqBlackwhiteRoundList) Reset()

func (*ReqBlackwhiteRoundList) String

func (m *ReqBlackwhiteRoundList) String() string

func (*ReqBlackwhiteRoundList) XXX_DiscardUnknown

func (m *ReqBlackwhiteRoundList) XXX_DiscardUnknown()

func (*ReqBlackwhiteRoundList) XXX_Marshal

func (m *ReqBlackwhiteRoundList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqBlackwhiteRoundList) XXX_Merge

func (m *ReqBlackwhiteRoundList) XXX_Merge(src proto.Message)

func (*ReqBlackwhiteRoundList) XXX_Size

func (m *ReqBlackwhiteRoundList) XXX_Size() int

func (*ReqBlackwhiteRoundList) XXX_Unmarshal

func (m *ReqBlackwhiteRoundList) XXX_Unmarshal(b []byte) error

type ReqLoopResult

type ReqLoopResult struct {
	GameID               string   `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
	LoopSeq              int32    `protobuf:"varint,2,opt,name=loopSeq,proto3" json:"loopSeq,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqLoopResult) Descriptor

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

func (*ReqLoopResult) GetGameID

func (m *ReqLoopResult) GetGameID() string

func (*ReqLoopResult) GetLoopSeq

func (m *ReqLoopResult) GetLoopSeq() int32

func (*ReqLoopResult) ProtoMessage

func (*ReqLoopResult) ProtoMessage()

func (*ReqLoopResult) Reset

func (m *ReqLoopResult) Reset()

func (*ReqLoopResult) String

func (m *ReqLoopResult) String() string

func (*ReqLoopResult) XXX_DiscardUnknown

func (m *ReqLoopResult) XXX_DiscardUnknown()

func (*ReqLoopResult) XXX_Marshal

func (m *ReqLoopResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqLoopResult) XXX_Merge

func (m *ReqLoopResult) XXX_Merge(src proto.Message)

func (*ReqLoopResult) XXX_Size

func (m *ReqLoopResult) XXX_Size() int

func (*ReqLoopResult) XXX_Unmarshal

func (m *ReqLoopResult) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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