user

package
v0.0.0-...-25cadc1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package user is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

PushTxRequest
PushTxResponse
RegisterRequest
AccountInfo
UserInfo
RegisterResponse
LoginRequest
LoginResponse
GetBlockHeaderRequest
GetBlockHeaderResponse
BlockHeader
GetAccountInfoRequest
GetAccountInfoResponse
AccountInfoData
FavoriteRequest
FavoriteResponse
GetFavoriteRequest
GetFavoriteResponse
FavoriteArr
FavoriteData
GetBalanceRequest
GetBalanceResponse
GetBalanceRow
Position
QueryMyBuyRequest
QueryMyBuyResponse
BuyData
Buy
GetTransferRequest
GetTransferResponse
TransferListData
Transfer

Package user is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

PushTxRequest
PushTxResponse
RegisterRequest
AccountInfo
UserInfo
RegisterResponse
LoginRequest
LoginResponse
GetBlockHeaderRequest
GetBlockHeaderResponse
BlockHeader
GetAccountInfoRequest
GetAccountInfoResponse
AccountInfoData
FavoriteRequest
FavoriteResponse
GetFavoriteRequest
GetFavoriteResponse
FavoriteArr
FavoriteData
GetBalanceRequest
GetBalanceResponse
GetBalanceRow
Position
QueryMyBuyRequest
QueryMyBuyResponse
BuyData
Buy
GetTransferRequest
GetTransferResponse
TransferListData
Transfer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserHandler

func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption)

Types

type AccountInfo

type AccountInfo struct {
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name"`
	Pubkey string `protobuf:"bytes,3,opt,name=pubkey" json:"pubkey"`
}

func (*AccountInfo) Descriptor

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

func (*AccountInfo) GetName

func (m *AccountInfo) GetName() string

func (*AccountInfo) GetPubkey

func (m *AccountInfo) GetPubkey() string

func (*AccountInfo) ProtoMessage

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) Reset

func (m *AccountInfo) Reset()

func (*AccountInfo) String

func (m *AccountInfo) String() string

type AccountInfoData

type AccountInfoData struct {
	AccountName   string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name"`
	Pubkey        string `protobuf:"bytes,2,opt,name=pubkey" json:"pubkey"`
	Balance       uint64 `protobuf:"varint,3,opt,name=balance" json:"balance"`
	StakedBalance uint64 `protobuf:"varint,4,opt,name=staked_balance,json=stakedBalance" json:"staked_balance"`
}

func (*AccountInfoData) Descriptor

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

func (*AccountInfoData) GetAccountName

func (m *AccountInfoData) GetAccountName() string

func (*AccountInfoData) GetBalance

func (m *AccountInfoData) GetBalance() uint64

func (*AccountInfoData) GetPubkey

func (m *AccountInfoData) GetPubkey() string

func (*AccountInfoData) GetStakedBalance

func (m *AccountInfoData) GetStakedBalance() uint64

func (*AccountInfoData) ProtoMessage

func (*AccountInfoData) ProtoMessage()

func (*AccountInfoData) Reset

func (m *AccountInfoData) Reset()

func (*AccountInfoData) String

func (m *AccountInfoData) String() string

type BlockHeader

type BlockHeader struct {
	HeadBlockNum          uint32 `protobuf:"varint,1,opt,name=head_block_num,json=headBlockNum" json:"head_block_num"`
	HeadBlockHash         string `protobuf:"bytes,2,opt,name=head_block_hash,json=headBlockHash" json:"head_block_hash"`
	HeadBlockTime         uint64 `protobuf:"varint,3,opt,name=head_block_time,json=headBlockTime" json:"head_block_time"`
	HeadBlockDelegate     string `protobuf:"bytes,4,opt,name=head_block_delegate,json=headBlockDelegate" json:"head_block_delegate"`
	CursorLabel           uint32 `protobuf:"varint,5,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"`
	LastConsensusBlockNum uint32 `protobuf:"varint,6,opt,name=last_consensus_block_num,json=lastConsensusBlockNum" json:"last_consensus_block_num"`
}

func (*BlockHeader) Descriptor

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

func (*BlockHeader) GetCursorLabel

func (m *BlockHeader) GetCursorLabel() uint32

func (*BlockHeader) GetHeadBlockDelegate

func (m *BlockHeader) GetHeadBlockDelegate() string

func (*BlockHeader) GetHeadBlockHash

func (m *BlockHeader) GetHeadBlockHash() string

func (*BlockHeader) GetHeadBlockNum

func (m *BlockHeader) GetHeadBlockNum() uint32

func (*BlockHeader) GetHeadBlockTime

func (m *BlockHeader) GetHeadBlockTime() uint64

func (*BlockHeader) GetLastConsensusBlockNum

func (m *BlockHeader) GetLastConsensusBlockNum() uint32

func (*BlockHeader) ProtoMessage

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) Reset

func (m *BlockHeader) Reset()

func (*BlockHeader) String

func (m *BlockHeader) String() string

type Buy

type Buy struct {
	ExchangeId  string `protobuf:"bytes,1,opt,name=exchange_id,json=exchangeId" json:"exchange_id"`
	Username    string `protobuf:"bytes,2,opt,name=username" json:"username"`
	AssetId     string `protobuf:"bytes,3,opt,name=asset_id,json=assetId" json:"asset_id"`
	AssetName   string `protobuf:"bytes,4,opt,name=asset_name,json=assetName" json:"asset_name"`
	AssetType   uint64 `protobuf:"varint,5,opt,name=asset_type,json=assetType" json:"asset_type"`
	FeatureTag  string `protobuf:"bytes,6,opt,name=feature_tag,json=featureTag" json:"feature_tag"`
	TokenType   string `protobuf:"bytes,7,opt,name=token_type,json=tokenType" json:"token_type"`
	Price       uint64 `protobuf:"varint,8,opt,name=price" json:"price"`
	SampleHash  string `protobuf:"bytes,9,opt,name=sample_hash,json=sampleHash" json:"sample_hash"`
	StorageHash string `protobuf:"bytes,10,opt,name=storage_hash,json=storageHash" json:"storage_hash"`
	Expiretime  uint64 `protobuf:"varint,11,opt,name=expiretime" json:"expiretime"`
	Timestamp   uint64 `protobuf:"varint,12,opt,name=timestamp" json:"timestamp"`
}

func (*Buy) Descriptor

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

func (*Buy) GetAssetId

func (m *Buy) GetAssetId() string

func (*Buy) GetAssetName

func (m *Buy) GetAssetName() string

func (*Buy) GetAssetType

func (m *Buy) GetAssetType() uint64

func (*Buy) GetExchangeId

func (m *Buy) GetExchangeId() string

func (*Buy) GetExpiretime

func (m *Buy) GetExpiretime() uint64

func (*Buy) GetFeatureTag

func (m *Buy) GetFeatureTag() string

func (*Buy) GetPrice

func (m *Buy) GetPrice() uint64

func (*Buy) GetSampleHash

func (m *Buy) GetSampleHash() string

func (*Buy) GetStorageHash

func (m *Buy) GetStorageHash() string

func (*Buy) GetTimestamp

func (m *Buy) GetTimestamp() uint64

func (*Buy) GetTokenType

func (m *Buy) GetTokenType() string

func (*Buy) GetUsername

func (m *Buy) GetUsername() string

func (*Buy) ProtoMessage

func (*Buy) ProtoMessage()

func (*Buy) Reset

func (m *Buy) Reset()

func (*Buy) String

func (m *Buy) String() string

type BuyData

type BuyData struct {
	PageNum  int32  `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"`
	RowCount int32  `protobuf:"varint,1,opt,name=row_count,json=rowCount" json:"row_count"`
	Row      []*Buy `protobuf:"bytes,3,rep,name=row" json:"row"`
}

func (*BuyData) Descriptor

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

func (*BuyData) GetPageNum

func (m *BuyData) GetPageNum() int32

func (*BuyData) GetRow

func (m *BuyData) GetRow() []*Buy

func (*BuyData) GetRowCount

func (m *BuyData) GetRowCount() int32

func (*BuyData) ProtoMessage

func (*BuyData) ProtoMessage()

func (*BuyData) Reset

func (m *BuyData) Reset()

func (*BuyData) String

func (m *BuyData) String() string

type FavoriteArr

type FavoriteArr struct {
	PageNum  uint64          `protobuf:"varint,1,opt,name=page_num,json=pageNum" json:"page_num"`
	RowCount uint64          `protobuf:"varint,2,opt,name=row_count,json=rowCount" json:"row_count"`
	Row      []*FavoriteData `protobuf:"bytes,3,rep,name=row" json:"row"`
}

func (*FavoriteArr) Descriptor

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

func (*FavoriteArr) GetPageNum

func (m *FavoriteArr) GetPageNum() uint64

func (*FavoriteArr) GetRow

func (m *FavoriteArr) GetRow() []*FavoriteData

func (*FavoriteArr) GetRowCount

func (m *FavoriteArr) GetRowCount() uint64

func (*FavoriteArr) ProtoMessage

func (*FavoriteArr) ProtoMessage()

func (*FavoriteArr) Reset

func (m *FavoriteArr) Reset()

func (*FavoriteArr) String

func (m *FavoriteArr) String() string

type FavoriteData

type FavoriteData struct {
	Username  string `protobuf:"bytes,1,opt,name=username" json:"username"`
	GoodsId   string `protobuf:"bytes,2,opt,name=goods_id,json=goodsId" json:"goods_id"`
	GoodsName string `protobuf:"bytes,3,opt,name=goods_name,json=goodsName" json:"goods_name"`
	Price     uint64 `protobuf:"varint,4,opt,name=price" json:"price"`
	Time      uint64 `protobuf:"varint,5,opt,name=time" json:"time"`
}

func (*FavoriteData) Descriptor

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

func (*FavoriteData) GetGoodsId

func (m *FavoriteData) GetGoodsId() string

func (*FavoriteData) GetGoodsName

func (m *FavoriteData) GetGoodsName() string

func (*FavoriteData) GetPrice

func (m *FavoriteData) GetPrice() uint64

func (*FavoriteData) GetTime

func (m *FavoriteData) GetTime() uint64

func (*FavoriteData) GetUsername

func (m *FavoriteData) GetUsername() string

func (*FavoriteData) ProtoMessage

func (*FavoriteData) ProtoMessage()

func (*FavoriteData) Reset

func (m *FavoriteData) Reset()

func (*FavoriteData) String

func (m *FavoriteData) String() string

type FavoriteRequest

type FavoriteRequest struct {
	Version     uint32 `protobuf:"varint,1,opt,name=version" json:"version"`
	CursorNum   uint32 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"`
	CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"`
	Lifetime    uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"`
	Sender      string `protobuf:"bytes,5,opt,name=sender" json:"sender"`
	Contract    string `protobuf:"bytes,6,opt,name=contract" json:"contract"`
	Method      string `protobuf:"bytes,7,opt,name=method" json:"method"`
	Param       string `protobuf:"bytes,8,opt,name=param" json:"param"`
	SigAlg      uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"`
	Signature   string `protobuf:"bytes,10,opt,name=signature" json:"signature"`
}

func (*FavoriteRequest) Descriptor

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

func (*FavoriteRequest) GetContract

func (m *FavoriteRequest) GetContract() string

func (*FavoriteRequest) GetCursorLabel

func (m *FavoriteRequest) GetCursorLabel() uint32

func (*FavoriteRequest) GetCursorNum

func (m *FavoriteRequest) GetCursorNum() uint32

func (*FavoriteRequest) GetLifetime

func (m *FavoriteRequest) GetLifetime() uint64

func (*FavoriteRequest) GetMethod

func (m *FavoriteRequest) GetMethod() string

func (*FavoriteRequest) GetParam

func (m *FavoriteRequest) GetParam() string

func (*FavoriteRequest) GetSender

func (m *FavoriteRequest) GetSender() string

func (*FavoriteRequest) GetSigAlg

func (m *FavoriteRequest) GetSigAlg() uint32

func (*FavoriteRequest) GetSignature

func (m *FavoriteRequest) GetSignature() string

func (*FavoriteRequest) GetVersion

func (m *FavoriteRequest) GetVersion() uint32

func (*FavoriteRequest) ProtoMessage

func (*FavoriteRequest) ProtoMessage()

func (*FavoriteRequest) Reset

func (m *FavoriteRequest) Reset()

func (*FavoriteRequest) String

func (m *FavoriteRequest) String() string

type FavoriteResponse

type FavoriteResponse struct {
	Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"`
	Data string `protobuf:"bytes,2,opt,name=data" json:"data"`
	Msg  string `protobuf:"bytes,3,opt,name=msg" json:"msg"`
}

func (*FavoriteResponse) Descriptor

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

func (*FavoriteResponse) GetCode

func (m *FavoriteResponse) GetCode() uint32

func (*FavoriteResponse) GetData

func (m *FavoriteResponse) GetData() string

func (*FavoriteResponse) GetMsg

func (m *FavoriteResponse) GetMsg() string

func (*FavoriteResponse) ProtoMessage

func (*FavoriteResponse) ProtoMessage()

func (*FavoriteResponse) Reset

func (m *FavoriteResponse) Reset()

func (*FavoriteResponse) String

func (m *FavoriteResponse) String() string

type GetAccountInfoRequest

type GetAccountInfoRequest struct {
	AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name"`
}

func (*GetAccountInfoRequest) Descriptor

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

func (*GetAccountInfoRequest) GetAccountName

func (m *GetAccountInfoRequest) GetAccountName() string

func (*GetAccountInfoRequest) ProtoMessage

func (*GetAccountInfoRequest) ProtoMessage()

func (*GetAccountInfoRequest) Reset

func (m *GetAccountInfoRequest) Reset()

func (*GetAccountInfoRequest) String

func (m *GetAccountInfoRequest) String() string

type GetAccountInfoResponse

type GetAccountInfoResponse struct {
	Code uint32           `protobuf:"varint,1,opt,name=code" json:"code"`
	Data *AccountInfoData `protobuf:"bytes,2,opt,name=data" json:"data"`
	Msg  string           `protobuf:"bytes,3,opt,name=msg" json:"msg"`
}

func (*GetAccountInfoResponse) Descriptor

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

func (*GetAccountInfoResponse) GetCode

func (m *GetAccountInfoResponse) GetCode() uint32

func (*GetAccountInfoResponse) GetData

func (*GetAccountInfoResponse) GetMsg

func (m *GetAccountInfoResponse) GetMsg() string

func (*GetAccountInfoResponse) ProtoMessage

func (*GetAccountInfoResponse) ProtoMessage()

func (*GetAccountInfoResponse) Reset

func (m *GetAccountInfoResponse) Reset()

func (*GetAccountInfoResponse) String

func (m *GetAccountInfoResponse) String() string

type GetBalanceRequest

type GetBalanceRequest struct {
	Username  string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Random    string `protobuf:"bytes,2,opt,name=random" json:"random"`
	TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType" json:"token_type"`
	PageNum   uint32 `protobuf:"varint,4,opt,name=page_num,json=pageNum" json:"page_num"`
	PageSize  uint32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size"`
}

func (*GetBalanceRequest) Descriptor

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

func (*GetBalanceRequest) GetPageNum

func (m *GetBalanceRequest) GetPageNum() uint32

func (*GetBalanceRequest) GetPageSize

func (m *GetBalanceRequest) GetPageSize() uint32

func (*GetBalanceRequest) GetRandom

func (m *GetBalanceRequest) GetRandom() string

func (*GetBalanceRequest) GetTokenType

func (m *GetBalanceRequest) GetTokenType() string

func (*GetBalanceRequest) GetUsername

func (m *GetBalanceRequest) GetUsername() string

func (*GetBalanceRequest) ProtoMessage

func (*GetBalanceRequest) ProtoMessage()

func (*GetBalanceRequest) Reset

func (m *GetBalanceRequest) Reset()

func (*GetBalanceRequest) String

func (m *GetBalanceRequest) String() string

type GetBalanceResponse

type GetBalanceResponse struct {
	Code uint32           `protobuf:"varint,1,opt,name=code" json:"code"`
	Data []*GetBalanceRow `protobuf:"bytes,2,rep,name=data" json:"data"`
	Msg  string           `protobuf:"bytes,3,opt,name=msg" json:"msg"`
}

func (*GetBalanceResponse) Descriptor

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

func (*GetBalanceResponse) GetCode

func (m *GetBalanceResponse) GetCode() uint32

func (*GetBalanceResponse) GetData

func (m *GetBalanceResponse) GetData() []*GetBalanceRow

func (*GetBalanceResponse) GetMsg

func (m *GetBalanceResponse) GetMsg() string

func (*GetBalanceResponse) ProtoMessage

func (*GetBalanceResponse) ProtoMessage()

func (*GetBalanceResponse) Reset

func (m *GetBalanceResponse) Reset()

func (*GetBalanceResponse) String

func (m *GetBalanceResponse) String() string

type GetBalanceRow

type GetBalanceRow struct {
	TokenType string  `protobuf:"bytes,1,opt,name=token_type,json=tokenType" json:"token_type"`
	Value     uint64  `protobuf:"varint,2,opt,name=value" json:"value"`
	Cny       float32 `protobuf:"fixed32,3,opt,name=cny" json:"cny"`
	Usd       float32 `protobuf:"fixed32,4,opt,name=usd" json:"usd"`
}

func (*GetBalanceRow) Descriptor

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

func (*GetBalanceRow) GetCny

func (m *GetBalanceRow) GetCny() float32

func (*GetBalanceRow) GetTokenType

func (m *GetBalanceRow) GetTokenType() string

func (*GetBalanceRow) GetUsd

func (m *GetBalanceRow) GetUsd() float32

func (*GetBalanceRow) GetValue

func (m *GetBalanceRow) GetValue() uint64

func (*GetBalanceRow) ProtoMessage

func (*GetBalanceRow) ProtoMessage()

func (*GetBalanceRow) Reset

func (m *GetBalanceRow) Reset()

func (*GetBalanceRow) String

func (m *GetBalanceRow) String() string

type GetBlockHeaderRequest

type GetBlockHeaderRequest struct {
}

func (*GetBlockHeaderRequest) Descriptor

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

func (*GetBlockHeaderRequest) ProtoMessage

func (*GetBlockHeaderRequest) ProtoMessage()

func (*GetBlockHeaderRequest) Reset

func (m *GetBlockHeaderRequest) Reset()

func (*GetBlockHeaderRequest) String

func (m *GetBlockHeaderRequest) String() string

type GetBlockHeaderResponse

type GetBlockHeaderResponse struct {
	Code uint32       `protobuf:"varint,1,opt,name=code" json:"code"`
	Data *BlockHeader `protobuf:"bytes,2,opt,name=data" json:"data"`
	Msg  string       `protobuf:"bytes,3,opt,name=msg" json:"msg"`
}

func (*GetBlockHeaderResponse) Descriptor

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

func (*GetBlockHeaderResponse) GetCode

func (m *GetBlockHeaderResponse) GetCode() uint32

func (*GetBlockHeaderResponse) GetData

func (m *GetBlockHeaderResponse) GetData() *BlockHeader

func (*GetBlockHeaderResponse) GetMsg

func (m *GetBlockHeaderResponse) GetMsg() string

func (*GetBlockHeaderResponse) ProtoMessage

func (*GetBlockHeaderResponse) ProtoMessage()

func (*GetBlockHeaderResponse) Reset

func (m *GetBlockHeaderResponse) Reset()

func (*GetBlockHeaderResponse) String

func (m *GetBlockHeaderResponse) String() string

type GetFavoriteRequest

type GetFavoriteRequest struct {
	Username  string `protobuf:"bytes,1,opt,name=username" json:"username"`
	GoodsType string `protobuf:"bytes,2,opt,name=goods_type,json=goodsType" json:"goods_type"`
	PageSize  uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size"`
	PageNum   uint32 `protobuf:"varint,4,opt,name=page_num,json=pageNum" json:"page_num"`
}

func (*GetFavoriteRequest) Descriptor

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

func (*GetFavoriteRequest) GetGoodsType

func (m *GetFavoriteRequest) GetGoodsType() string

func (*GetFavoriteRequest) GetPageNum

func (m *GetFavoriteRequest) GetPageNum() uint32

func (*GetFavoriteRequest) GetPageSize

func (m *GetFavoriteRequest) GetPageSize() uint32

func (*GetFavoriteRequest) GetUsername

func (m *GetFavoriteRequest) GetUsername() string

func (*GetFavoriteRequest) ProtoMessage

func (*GetFavoriteRequest) ProtoMessage()

func (*GetFavoriteRequest) Reset

func (m *GetFavoriteRequest) Reset()

func (*GetFavoriteRequest) String

func (m *GetFavoriteRequest) String() string

type GetFavoriteResponse

type GetFavoriteResponse struct {
	Code uint32       `protobuf:"varint,1,opt,name=code" json:"code"`
	Data *FavoriteArr `protobuf:"bytes,2,opt,name=data" json:"data"`
	Msg  string       `protobuf:"bytes,3,opt,name=msg" json:"msg"`
}

func (*GetFavoriteResponse) Descriptor

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

func (*GetFavoriteResponse) GetCode

func (m *GetFavoriteResponse) GetCode() uint32

func (*GetFavoriteResponse) GetData

func (m *GetFavoriteResponse) GetData() *FavoriteArr

func (*GetFavoriteResponse) GetMsg

func (m *GetFavoriteResponse) GetMsg() string

func (*GetFavoriteResponse) ProtoMessage

func (*GetFavoriteResponse) ProtoMessage()

func (*GetFavoriteResponse) Reset

func (m *GetFavoriteResponse) Reset()

func (*GetFavoriteResponse) String

func (m *GetFavoriteResponse) String() string

type GetTransferRequest

type GetTransferRequest struct {
	PageSize  int32  `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size"`
	PageNum   int32  `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"`
	Username  string `protobuf:"bytes,3,opt,name=username" json:"username"`
	Random    string `protobuf:"bytes,4,opt,name=random" json:"random"`
	Signature string `protobuf:"bytes,5,opt,name=signature" json:"signature"`
	TokenType string `protobuf:"bytes,6,opt,name=token_type,json=tokenType" json:"token_type"`
}

func (*GetTransferRequest) Descriptor

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

func (*GetTransferRequest) GetPageNum

func (m *GetTransferRequest) GetPageNum() int32

func (*GetTransferRequest) GetPageSize

func (m *GetTransferRequest) GetPageSize() int32

func (*GetTransferRequest) GetRandom

func (m *GetTransferRequest) GetRandom() string

func (*GetTransferRequest) GetSignature

func (m *GetTransferRequest) GetSignature() string

func (*GetTransferRequest) GetTokenType

func (m *GetTransferRequest) GetTokenType() string

func (*GetTransferRequest) GetUsername

func (m *GetTransferRequest) GetUsername() string

func (*GetTransferRequest) ProtoMessage

func (*GetTransferRequest) ProtoMessage()

func (*GetTransferRequest) Reset

func (m *GetTransferRequest) Reset()

func (*GetTransferRequest) String

func (m *GetTransferRequest) String() string

type GetTransferResponse

type GetTransferResponse struct {
	Code int32             `protobuf:"varint,1,opt,name=code" json:"code"`
	Data *TransferListData `protobuf:"bytes,2,opt,name=data" json:"data"`
	Msg  string            `protobuf:"bytes,3,opt,name=msg" json:"msg"`
}

func (*GetTransferResponse) Descriptor

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

func (*GetTransferResponse) GetCode

func (m *GetTransferResponse) GetCode() int32

func (*GetTransferResponse) GetData

func (m *GetTransferResponse) GetData() *TransferListData

func (*GetTransferResponse) GetMsg

func (m *GetTransferResponse) GetMsg() string

func (*GetTransferResponse) ProtoMessage

func (*GetTransferResponse) ProtoMessage()

func (*GetTransferResponse) Reset

func (m *GetTransferResponse) Reset()

func (*GetTransferResponse) String

func (m *GetTransferResponse) String() string

type LoginRequest

type LoginRequest struct {
	Username    string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Random      string `protobuf:"bytes,2,opt,name=random" json:"random"`
	VerifyId    string `protobuf:"bytes,3,opt,name=verify_id,json=verifyId" json:"verify_id"`
	VerifyValue string `protobuf:"bytes,4,opt,name=verify_value,json=verifyValue" json:"verify_value"`
	Signture    string `protobuf:"bytes,5,opt,name=signture" json:"signture"`
}

func (*LoginRequest) Descriptor

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

func (*LoginRequest) GetRandom

func (m *LoginRequest) GetRandom() string

func (*LoginRequest) GetSignture

func (m *LoginRequest) GetSignture() string

func (*LoginRequest) GetUsername

func (m *LoginRequest) GetUsername() string

func (*LoginRequest) GetVerifyId

func (m *LoginRequest) GetVerifyId() string

func (*LoginRequest) GetVerifyValue

func (m *LoginRequest) GetVerifyValue() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) String

func (m *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"`
	Msg  string `protobuf:"bytes,2,opt,name=msg" json:"msg"`
}

func (*LoginResponse) Descriptor

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

func (*LoginResponse) GetCode

func (m *LoginResponse) GetCode() uint32

func (*LoginResponse) GetMsg

func (m *LoginResponse) GetMsg() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) Reset

func (m *LoginResponse) Reset()

func (*LoginResponse) String

func (m *LoginResponse) String() string

type Position

type Position struct {
	Longitude string `protobuf:"bytes,1,opt,name=longitude" json:"longitude"`
	Latitude  string `protobuf:"bytes,2,opt,name=latitude" json:"latitude"`
}

func (*Position) Descriptor

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

func (*Position) GetLatitude

func (m *Position) GetLatitude() string

func (*Position) GetLongitude

func (m *Position) GetLongitude() string

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) String

func (m *Position) String() string

type PushTxRequest

type PushTxRequest struct {
	Version     uint32 `protobuf:"varint,1,opt,name=version" json:"version"`
	CursorNum   uint32 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"`
	CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"`
	Lifetime    uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"`
	Sender      string `protobuf:"bytes,5,opt,name=sender" json:"sender"`
	Contract    string `protobuf:"bytes,6,opt,name=contract" json:"contract"`
	Method      string `protobuf:"bytes,7,opt,name=method" json:"method"`
	Param       string `protobuf:"bytes,8,opt,name=param" json:"param"`
	SigAlg      uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"`
	Signature   string `protobuf:"bytes,10,opt,name=signature" json:"signature"`
}

func (*PushTxRequest) Descriptor

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

func (*PushTxRequest) GetContract

func (m *PushTxRequest) GetContract() string

func (*PushTxRequest) GetCursorLabel

func (m *PushTxRequest) GetCursorLabel() uint32

func (*PushTxRequest) GetCursorNum

func (m *PushTxRequest) GetCursorNum() uint32

func (*PushTxRequest) GetLifetime

func (m *PushTxRequest) GetLifetime() uint64

func (*PushTxRequest) GetMethod

func (m *PushTxRequest) GetMethod() string

func (*PushTxRequest) GetParam

func (m *PushTxRequest) GetParam() string

func (*PushTxRequest) GetSender

func (m *PushTxRequest) GetSender() string

func (*PushTxRequest) GetSigAlg

func (m *PushTxRequest) GetSigAlg() uint32

func (*PushTxRequest) GetSignature

func (m *PushTxRequest) GetSignature() string

func (*PushTxRequest) GetVersion

func (m *PushTxRequest) GetVersion() uint32

func (*PushTxRequest) ProtoMessage

func (*PushTxRequest) ProtoMessage()

func (*PushTxRequest) Reset

func (m *PushTxRequest) Reset()

func (*PushTxRequest) String

func (m *PushTxRequest) String() string

type PushTxResponse

type PushTxResponse struct {
	Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"`
	Msg  string `protobuf:"bytes,2,opt,name=msg" json:"msg"`
}

func (*PushTxResponse) Descriptor

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

func (*PushTxResponse) GetCode

func (m *PushTxResponse) GetCode() uint32

func (*PushTxResponse) GetMsg

func (m *PushTxResponse) GetMsg() string

func (*PushTxResponse) ProtoMessage

func (*PushTxResponse) ProtoMessage()

func (*PushTxResponse) Reset

func (m *PushTxResponse) Reset()

func (*PushTxResponse) String

func (m *PushTxResponse) String() string

type QueryMyBuyRequest

type QueryMyBuyRequest struct {
	PageSize  int32  `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size"`
	PageNum   int32  `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"`
	Username  string `protobuf:"bytes,3,opt,name=username" json:"username"`
	Random    string `protobuf:"bytes,4,opt,name=random" json:"random"`
	Signature string `protobuf:"bytes,5,opt,name=signature" json:"signature"`
}

func (*QueryMyBuyRequest) Descriptor

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

func (*QueryMyBuyRequest) GetPageNum

func (m *QueryMyBuyRequest) GetPageNum() int32

func (*QueryMyBuyRequest) GetPageSize

func (m *QueryMyBuyRequest) GetPageSize() int32

func (*QueryMyBuyRequest) GetRandom

func (m *QueryMyBuyRequest) GetRandom() string

func (*QueryMyBuyRequest) GetSignature

func (m *QueryMyBuyRequest) GetSignature() string

func (*QueryMyBuyRequest) GetUsername

func (m *QueryMyBuyRequest) GetUsername() string

func (*QueryMyBuyRequest) ProtoMessage

func (*QueryMyBuyRequest) ProtoMessage()

func (*QueryMyBuyRequest) Reset

func (m *QueryMyBuyRequest) Reset()

func (*QueryMyBuyRequest) String

func (m *QueryMyBuyRequest) String() string

type QueryMyBuyResponse

type QueryMyBuyResponse struct {
	Code uint32   `protobuf:"varint,1,opt,name=code" json:"code"`
	Data *BuyData `protobuf:"bytes,2,opt,name=data" json:"data"`
	Msg  string   `protobuf:"bytes,3,opt,name=msg" json:"msg"`
}

func (*QueryMyBuyResponse) Descriptor

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

func (*QueryMyBuyResponse) GetCode

func (m *QueryMyBuyResponse) GetCode() uint32

func (*QueryMyBuyResponse) GetData

func (m *QueryMyBuyResponse) GetData() *BuyData

func (*QueryMyBuyResponse) GetMsg

func (m *QueryMyBuyResponse) GetMsg() string

func (*QueryMyBuyResponse) ProtoMessage

func (*QueryMyBuyResponse) ProtoMessage()

func (*QueryMyBuyResponse) Reset

func (m *QueryMyBuyResponse) Reset()

func (*QueryMyBuyResponse) String

func (m *QueryMyBuyResponse) String() string

type RegisterRequest

type RegisterRequest struct {
	Account     *AccountInfo `protobuf:"bytes,1,opt,name=account" json:"account"`
	User        *UserInfo    `protobuf:"bytes,2,opt,name=user" json:"user"`
	VerifyId    string       `protobuf:"bytes,3,opt,name=verify_id,json=verifyId" json:"verify_id"`
	VerifyValue string       `protobuf:"bytes,4,opt,name=verify_value,json=verifyValue" json:"verify_value"`
}

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetAccount

func (m *RegisterRequest) GetAccount() *AccountInfo

func (*RegisterRequest) GetUser

func (m *RegisterRequest) GetUser() *UserInfo

func (*RegisterRequest) GetVerifyId

func (m *RegisterRequest) GetVerifyId() string

func (*RegisterRequest) GetVerifyValue

func (m *RegisterRequest) GetVerifyValue() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"`
	Msg  string `protobuf:"bytes,2,opt,name=msg" json:"msg"`
}

func (*RegisterResponse) Descriptor

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

func (*RegisterResponse) GetCode

func (m *RegisterResponse) GetCode() uint32

func (*RegisterResponse) GetMsg

func (m *RegisterResponse) GetMsg() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) Reset

func (m *RegisterResponse) Reset()

func (*RegisterResponse) String

func (m *RegisterResponse) String() string

type Transfer

type Transfer struct {
	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId" json:"transaction_id"`
	From          string `protobuf:"bytes,2,opt,name=from" json:"from"`
	To            string `protobuf:"bytes,3,opt,name=to" json:"to"`
	TokenType     string `protobuf:"bytes,4,opt,name=token_type,json=tokenType" json:"token_type"`
	Value         uint64 `protobuf:"varint,5,opt,name=Value" json:"Value"`
	Timestamp     uint64 `protobuf:"varint,6,opt,name=timestamp" json:"timestamp"`
	BlockNumber   uint32 `protobuf:"varint,7,opt,name=block_number,json=blockNumber" json:"block_number"`
}

func (*Transfer) Descriptor

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

func (*Transfer) GetBlockNumber

func (m *Transfer) GetBlockNumber() uint32

func (*Transfer) GetFrom

func (m *Transfer) GetFrom() string

func (*Transfer) GetTimestamp

func (m *Transfer) GetTimestamp() uint64

func (*Transfer) GetTo

func (m *Transfer) GetTo() string

func (*Transfer) GetTokenType

func (m *Transfer) GetTokenType() string

func (*Transfer) GetTransactionId

func (m *Transfer) GetTransactionId() string

func (*Transfer) GetValue

func (m *Transfer) GetValue() uint64

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) Reset

func (m *Transfer) Reset()

func (*Transfer) String

func (m *Transfer) String() string

type TransferListData

type TransferListData struct {
	PageNum  int32       `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"`
	RowCount int32       `protobuf:"varint,1,opt,name=row_count,json=rowCount" json:"row_count"`
	Row      []*Transfer `protobuf:"bytes,3,rep,name=row" json:"row"`
}

func (*TransferListData) Descriptor

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

func (*TransferListData) GetPageNum

func (m *TransferListData) GetPageNum() int32

func (*TransferListData) GetRow

func (m *TransferListData) GetRow() []*Transfer

func (*TransferListData) GetRowCount

func (m *TransferListData) GetRowCount() int32

func (*TransferListData) ProtoMessage

func (*TransferListData) ProtoMessage()

func (*TransferListData) Reset

func (m *TransferListData) Reset()

func (*TransferListData) String

func (m *TransferListData) String() string

type User

type User struct {
	UserHandler
}

func (*User) Favorite

func (h *User) Favorite(ctx context.Context, in *FavoriteRequest, out *FavoriteResponse) error

func (*User) GetAccountInfo

func (h *User) GetAccountInfo(ctx context.Context, in *GetAccountInfoRequest, out *GetAccountInfoResponse) error

func (*User) GetBalance

func (h *User) GetBalance(ctx context.Context, in *GetBalanceRequest, out *GetBalanceResponse) error

func (*User) GetBlockHeader

func (h *User) GetBlockHeader(ctx context.Context, in *GetBlockHeaderRequest, out *GetBlockHeaderResponse) error

func (*User) GetFavorite

func (h *User) GetFavorite(ctx context.Context, in *GetFavoriteRequest, out *GetFavoriteResponse) error

func (*User) GetTransfer

func (h *User) GetTransfer(ctx context.Context, in *GetTransferRequest, out *GetTransferResponse) error

func (*User) Login

func (h *User) Login(ctx context.Context, in *LoginRequest, out *LoginResponse) error

func (*User) QueryMyBuy

func (h *User) QueryMyBuy(ctx context.Context, in *QueryMyBuyRequest, out *QueryMyBuyResponse) error

func (*User) Register

func (h *User) Register(ctx context.Context, in *RegisterRequest, out *RegisterResponse) error

func (*User) Transfer

func (h *User) Transfer(ctx context.Context, in *PushTxRequest, out *PushTxResponse) error

type UserInfo

type UserInfo struct {
	Version     uint32 `protobuf:"varint,1,opt,name=version" json:"version"`
	CursorNum   uint32 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"`
	CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"`
	Lifetime    uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"`
	Sender      string `protobuf:"bytes,5,opt,name=sender" json:"sender"`
	Contract    string `protobuf:"bytes,6,opt,name=contract" json:"contract"`
	Method      string `protobuf:"bytes,7,opt,name=method" json:"method"`
	Param       string `protobuf:"bytes,8,opt,name=param" json:"param"`
	SigAlg      uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"`
	Signature   string `protobuf:"bytes,10,opt,name=signature" json:"signature"`
}

func (*UserInfo) Descriptor

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

func (*UserInfo) GetContract

func (m *UserInfo) GetContract() string

func (*UserInfo) GetCursorLabel

func (m *UserInfo) GetCursorLabel() uint32

func (*UserInfo) GetCursorNum

func (m *UserInfo) GetCursorNum() uint32

func (*UserInfo) GetLifetime

func (m *UserInfo) GetLifetime() uint64

func (*UserInfo) GetMethod

func (m *UserInfo) GetMethod() string

func (*UserInfo) GetParam

func (m *UserInfo) GetParam() string

func (*UserInfo) GetSender

func (m *UserInfo) GetSender() string

func (*UserInfo) GetSigAlg

func (m *UserInfo) GetSigAlg() uint32

func (*UserInfo) GetSignature

func (m *UserInfo) GetSignature() string

func (*UserInfo) GetVersion

func (m *UserInfo) GetVersion() uint32

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) String

func (m *UserInfo) String() string

Jump to

Keyboard shortcuts

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