storage

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 storage is a generated protocol buffer package.

It is generated from these files:

github.com/bottos-project/magiccube/service/storage/proto/storage-api.proto

It has these top-level messages:

AllRequest
UserRequest
FileUploadRequest
FileUploadResponse
FileUploadStatRequest
FileUploadStatResponse
DownLoadRequest
DownLoadResponse
Request
Response
InsertTokenRequest
InsertTokenResponse
TokenRequest
TokenResponse
DelTokenRequest
DelTokenResponse
AgeTokenRequest
AgeTokenResponse
UserFileListRequest
File
UserFileListResponse
UserRequireListRequest
Requirement
UserRequireListResponse
AllRequireListResponse
FeatureRequireListRequest
FeatureRequireListResponse
UserAssetListRequest
UserAsset
UserAssetListResponse
Asset
AssetListRequest
AssetListResponse
RecentTx
RecentTxListRequest
RecentTxListResponse
UserTxListResponse
AllTxNumResponse
SumTxAmountRequest
SumTxAmountResponse
DayTxNumRequest
DayTxNumResponse
WeekTxNumResponse
DayAssetNumResponse
WeekAssetNumResponse
DayRequirementNumResponse
WeekRequirementNumResponse
Node
NodeInfosResponse
Transfer
TransferListResponse
Favorit
UserFavoritResponse
DataPresale
UserDataPresaleResponse
AssetIdRequest
AssetInfoResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStorageHandler

func RegisterStorageHandler(s server.Server, hdlr StorageHandler, opts ...server.HandlerOption)

Types

type AgeTokenRequest

type AgeTokenRequest struct {
	Timeout int64 `protobuf:"varint,1,opt,name=timeout" json:"timeout,omitempty"`
}

func (*AgeTokenRequest) Descriptor

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

func (*AgeTokenRequest) GetTimeout

func (m *AgeTokenRequest) GetTimeout() int64

func (*AgeTokenRequest) ProtoMessage

func (*AgeTokenRequest) ProtoMessage()

func (*AgeTokenRequest) Reset

func (m *AgeTokenRequest) Reset()

func (*AgeTokenRequest) String

func (m *AgeTokenRequest) String() string

type AgeTokenResponse

type AgeTokenResponse struct {
	Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
}

func (*AgeTokenResponse) Descriptor

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

func (*AgeTokenResponse) GetCode

func (m *AgeTokenResponse) GetCode() uint32

func (*AgeTokenResponse) ProtoMessage

func (*AgeTokenResponse) ProtoMessage()

func (*AgeTokenResponse) Reset

func (m *AgeTokenResponse) Reset()

func (*AgeTokenResponse) String

func (m *AgeTokenResponse) String() string

type AllRequest

type AllRequest struct {
}

func (*AllRequest) Descriptor

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

func (*AllRequest) ProtoMessage

func (*AllRequest) ProtoMessage()

func (*AllRequest) Reset

func (m *AllRequest) Reset()

func (*AllRequest) String

func (m *AllRequest) String() string

type AllRequireListResponse

type AllRequireListResponse struct {
	Code        uint32         `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	RequireList []*Requirement `protobuf:"bytes,2,rep,name=RequireList" json:"RequireList,omitempty"`
}

func (*AllRequireListResponse) Descriptor

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

func (*AllRequireListResponse) GetCode

func (m *AllRequireListResponse) GetCode() uint32

func (*AllRequireListResponse) GetRequireList

func (m *AllRequireListResponse) GetRequireList() []*Requirement

func (*AllRequireListResponse) ProtoMessage

func (*AllRequireListResponse) ProtoMessage()

func (*AllRequireListResponse) Reset

func (m *AllRequireListResponse) Reset()

func (*AllRequireListResponse) String

func (m *AllRequireListResponse) String() string

type AllTxNumResponse

type AllTxNumResponse struct {
	Code  uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	TxNum uint64 `protobuf:"varint,2,opt,name=tx_num,json=txNum" json:"tx_num,omitempty"`
}

func (*AllTxNumResponse) Descriptor

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

func (*AllTxNumResponse) GetCode

func (m *AllTxNumResponse) GetCode() uint32

func (*AllTxNumResponse) GetTxNum

func (m *AllTxNumResponse) GetTxNum() uint64

func (*AllTxNumResponse) ProtoMessage

func (*AllTxNumResponse) ProtoMessage()

func (*AllTxNumResponse) Reset

func (m *AllTxNumResponse) Reset()

func (*AllTxNumResponse) String

func (m *AllTxNumResponse) String() string

type Asset

type Asset struct {
	AssetId     string `protobuf:"bytes,1,opt,name=asset_id,json=assetId" json:"asset_id,omitempty"`
	Username    string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
	AssetName   string `protobuf:"bytes,3,opt,name=asset_name,json=assetName" json:"asset_name,omitempty"`
	FeatureTag  uint64 `protobuf:"varint,4,opt,name=feature_tag,json=featureTag" json:"feature_tag,omitempty"`
	SamplePath  string `protobuf:"bytes,5,opt,name=sample_path,json=samplePath" json:"sample_path,omitempty"`
	SampleHash  string `protobuf:"bytes,6,opt,name=sample_hash,json=sampleHash" json:"sample_hash,omitempty"`
	StoragePath string `protobuf:"bytes,7,opt,name=storage_path,json=storagePath" json:"storage_path,omitempty"`
	StorageHash string `protobuf:"bytes,8,opt,name=storage_hash,json=storageHash" json:"storage_hash,omitempty"`
	ExpireTime  uint32 `protobuf:"varint,9,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"`
	Price       uint64 `protobuf:"varint,10,opt,name=price" json:"price,omitempty"`
	Description string `protobuf:"bytes,11,opt,name=description" json:"description,omitempty"`
	UploadDate  uint32 `protobuf:"varint,12,opt,name=upload_date,json=uploadDate" json:"upload_date,omitempty"`
}

func (*Asset) Descriptor

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

func (*Asset) GetAssetId

func (m *Asset) GetAssetId() string

func (*Asset) GetAssetName

func (m *Asset) GetAssetName() string

func (*Asset) GetDescription

func (m *Asset) GetDescription() string

func (*Asset) GetExpireTime

func (m *Asset) GetExpireTime() uint32

func (*Asset) GetFeatureTag

func (m *Asset) GetFeatureTag() uint64

func (*Asset) GetPrice

func (m *Asset) GetPrice() uint64

func (*Asset) GetSampleHash

func (m *Asset) GetSampleHash() string

func (*Asset) GetSamplePath

func (m *Asset) GetSamplePath() string

func (*Asset) GetStorageHash

func (m *Asset) GetStorageHash() string

func (*Asset) GetStoragePath

func (m *Asset) GetStoragePath() string

func (*Asset) GetUploadDate

func (m *Asset) GetUploadDate() uint32

func (*Asset) GetUsername

func (m *Asset) GetUsername() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) String

func (m *Asset) String() string

type AssetIdRequest

type AssetIdRequest struct {
	AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId" json:"asset_id,omitempty"`
}

func (*AssetIdRequest) Descriptor

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

func (*AssetIdRequest) GetAssetId

func (m *AssetIdRequest) GetAssetId() string

func (*AssetIdRequest) ProtoMessage

func (*AssetIdRequest) ProtoMessage()

func (*AssetIdRequest) Reset

func (m *AssetIdRequest) Reset()

func (*AssetIdRequest) String

func (m *AssetIdRequest) String() string

type AssetInfoResponse

type AssetInfoResponse struct {
	Code      uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	AssetInfo *Asset `protobuf:"bytes,2,opt,name=asset_info,json=assetInfo" json:"asset_info,omitempty"`
}

func (*AssetInfoResponse) Descriptor

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

func (*AssetInfoResponse) GetAssetInfo

func (m *AssetInfoResponse) GetAssetInfo() *Asset

func (*AssetInfoResponse) GetCode

func (m *AssetInfoResponse) GetCode() uint32

func (*AssetInfoResponse) ProtoMessage

func (*AssetInfoResponse) ProtoMessage()

func (*AssetInfoResponse) Reset

func (m *AssetInfoResponse) Reset()

func (*AssetInfoResponse) String

func (m *AssetInfoResponse) String() string

type AssetListRequest

type AssetListRequest struct {
}

func (*AssetListRequest) Descriptor

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

func (*AssetListRequest) ProtoMessage

func (*AssetListRequest) ProtoMessage()

func (*AssetListRequest) Reset

func (m *AssetListRequest) Reset()

func (*AssetListRequest) String

func (m *AssetListRequest) String() string

type AssetListResponse

type AssetListResponse struct {
	Code      uint32   `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	AssetList []*Asset `protobuf:"bytes,2,rep,name=AssetList" json:"AssetList,omitempty"`
}

func (*AssetListResponse) Descriptor

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

func (*AssetListResponse) GetAssetList

func (m *AssetListResponse) GetAssetList() []*Asset

func (*AssetListResponse) GetCode

func (m *AssetListResponse) GetCode() uint32

func (*AssetListResponse) ProtoMessage

func (*AssetListResponse) ProtoMessage()

func (*AssetListResponse) Reset

func (m *AssetListResponse) Reset()

func (*AssetListResponse) String

func (m *AssetListResponse) String() string

type DataPresale

type DataPresale struct {
	DataPresaleId string `protobuf:"bytes,1,opt,name=data_presale_id,json=dataPresaleId" json:"data_presale_id,omitempty"`
	UserName      string `protobuf:"bytes,2,opt,name=user_name,json=userName" json:"user_name,omitempty"`
	AssetId       string `protobuf:"bytes,3,opt,name=asset_id,json=assetId" json:"asset_id,omitempty"`
	DataReqId     string `protobuf:"bytes,4,opt,name=data_req_id,json=dataReqId" json:"data_req_id,omitempty"`
	Consumer      string `protobuf:"bytes,5,opt,name=consumer" json:"consumer,omitempty"`
}

func (*DataPresale) Descriptor

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

func (*DataPresale) GetAssetId

func (m *DataPresale) GetAssetId() string

func (*DataPresale) GetConsumer

func (m *DataPresale) GetConsumer() string

func (*DataPresale) GetDataPresaleId

func (m *DataPresale) GetDataPresaleId() string

func (*DataPresale) GetDataReqId

func (m *DataPresale) GetDataReqId() string

func (*DataPresale) GetUserName

func (m *DataPresale) GetUserName() string

func (*DataPresale) ProtoMessage

func (*DataPresale) ProtoMessage()

func (*DataPresale) Reset

func (m *DataPresale) Reset()

func (*DataPresale) String

func (m *DataPresale) String() string

type DayAssetNumResponse

type DayAssetNumResponse struct {
	Code        uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	DayAssetNum uint64 `protobuf:"varint,2,opt,name=day_asset_num,json=dayAssetNum" json:"day_asset_num,omitempty"`
}

func (*DayAssetNumResponse) Descriptor

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

func (*DayAssetNumResponse) GetCode

func (m *DayAssetNumResponse) GetCode() uint32

func (*DayAssetNumResponse) GetDayAssetNum

func (m *DayAssetNumResponse) GetDayAssetNum() uint64

func (*DayAssetNumResponse) ProtoMessage

func (*DayAssetNumResponse) ProtoMessage()

func (*DayAssetNumResponse) Reset

func (m *DayAssetNumResponse) Reset()

func (*DayAssetNumResponse) String

func (m *DayAssetNumResponse) String() string

type DayRequirementNumResponse

type DayRequirementNumResponse struct {
	Code              uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	DayRequirementNum uint64 `protobuf:"varint,2,opt,name=day_requirement_num,json=dayRequirementNum" json:"day_requirement_num,omitempty"`
}

func (*DayRequirementNumResponse) Descriptor

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

func (*DayRequirementNumResponse) GetCode

func (m *DayRequirementNumResponse) GetCode() uint32

func (*DayRequirementNumResponse) GetDayRequirementNum

func (m *DayRequirementNumResponse) GetDayRequirementNum() uint64

func (*DayRequirementNumResponse) ProtoMessage

func (*DayRequirementNumResponse) ProtoMessage()

func (*DayRequirementNumResponse) Reset

func (m *DayRequirementNumResponse) Reset()

func (*DayRequirementNumResponse) String

func (m *DayRequirementNumResponse) String() string

type DayTxNumRequest

type DayTxNumRequest struct {
}

func (*DayTxNumRequest) Descriptor

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

func (*DayTxNumRequest) ProtoMessage

func (*DayTxNumRequest) ProtoMessage()

func (*DayTxNumRequest) Reset

func (m *DayTxNumRequest) Reset()

func (*DayTxNumRequest) String

func (m *DayTxNumRequest) String() string

type DayTxNumResponse

type DayTxNumResponse struct {
	Code     uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	DayTxNum uint64 `protobuf:"varint,2,opt,name=day_tx_num,json=dayTxNum" json:"day_tx_num,omitempty"`
}

func (*DayTxNumResponse) Descriptor

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

func (*DayTxNumResponse) GetCode

func (m *DayTxNumResponse) GetCode() uint32

func (*DayTxNumResponse) GetDayTxNum

func (m *DayTxNumResponse) GetDayTxNum() uint64

func (*DayTxNumResponse) ProtoMessage

func (*DayTxNumResponse) ProtoMessage()

func (*DayTxNumResponse) Reset

func (m *DayTxNumResponse) Reset()

func (*DayTxNumResponse) String

func (m *DayTxNumResponse) String() string

type DelTokenRequest

type DelTokenRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Token    string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
}

func (*DelTokenRequest) Descriptor

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

func (*DelTokenRequest) GetToken

func (m *DelTokenRequest) GetToken() string

func (*DelTokenRequest) GetUsername

func (m *DelTokenRequest) GetUsername() string

func (*DelTokenRequest) ProtoMessage

func (*DelTokenRequest) ProtoMessage()

func (*DelTokenRequest) Reset

func (m *DelTokenRequest) Reset()

func (*DelTokenRequest) String

func (m *DelTokenRequest) String() string

type DelTokenResponse

type DelTokenResponse struct {
	Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
}

func (*DelTokenResponse) Descriptor

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

func (*DelTokenResponse) GetCode

func (m *DelTokenResponse) GetCode() uint32

func (*DelTokenResponse) ProtoMessage

func (*DelTokenResponse) ProtoMessage()

func (*DelTokenResponse) Reset

func (m *DelTokenResponse) Reset()

func (*DelTokenResponse) String

func (m *DelTokenResponse) String() string

type DownLoadRequest

type DownLoadRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
}

func (*DownLoadRequest) Descriptor

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

func (*DownLoadRequest) GetFileName

func (m *DownLoadRequest) GetFileName() string

func (*DownLoadRequest) GetUsername

func (m *DownLoadRequest) GetUsername() string

func (*DownLoadRequest) ProtoMessage

func (*DownLoadRequest) ProtoMessage()

func (*DownLoadRequest) Reset

func (m *DownLoadRequest) Reset()

func (*DownLoadRequest) String

func (m *DownLoadRequest) String() string

type DownLoadResponse

type DownLoadResponse struct {
	Result          string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	Message         string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	PresignedGetUrl string `protobuf:"bytes,3,opt,name=presigned_get_url,json=presignedGetUrl" json:"presigned_get_url,omitempty"`
}

func (*DownLoadResponse) Descriptor

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

func (*DownLoadResponse) GetMessage

func (m *DownLoadResponse) GetMessage() string

func (*DownLoadResponse) GetPresignedGetUrl

func (m *DownLoadResponse) GetPresignedGetUrl() string

func (*DownLoadResponse) GetResult

func (m *DownLoadResponse) GetResult() string

func (*DownLoadResponse) ProtoMessage

func (*DownLoadResponse) ProtoMessage()

func (*DownLoadResponse) Reset

func (m *DownLoadResponse) Reset()

func (*DownLoadResponse) String

func (m *DownLoadResponse) String() string

type Favorit

type Favorit struct {
	Username  string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	OpType    string `protobuf:"bytes,2,opt,name=op_type,json=opType" json:"op_type,omitempty"`
	GoodsType string `protobuf:"bytes,3,opt,name=goods_type,json=goodsType" json:"goods_type,omitempty"`
	GoodsId   string `protobuf:"bytes,4,opt,name=goods_id,json=goodsId" json:"goods_id,omitempty"`
}

func (*Favorit) Descriptor

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

func (*Favorit) GetGoodsId

func (m *Favorit) GetGoodsId() string

func (*Favorit) GetGoodsType

func (m *Favorit) GetGoodsType() string

func (*Favorit) GetOpType

func (m *Favorit) GetOpType() string

func (*Favorit) GetUsername

func (m *Favorit) GetUsername() string

func (*Favorit) ProtoMessage

func (*Favorit) ProtoMessage()

func (*Favorit) Reset

func (m *Favorit) Reset()

func (*Favorit) String

func (m *Favorit) String() string

type FeatureRequireListRequest

type FeatureRequireListRequest struct {
	FeatureTag uint64 `protobuf:"varint,1,opt,name=feature_tag,json=featureTag" json:"feature_tag,omitempty"`
}

func (*FeatureRequireListRequest) Descriptor

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

func (*FeatureRequireListRequest) GetFeatureTag

func (m *FeatureRequireListRequest) GetFeatureTag() uint64

func (*FeatureRequireListRequest) ProtoMessage

func (*FeatureRequireListRequest) ProtoMessage()

func (*FeatureRequireListRequest) Reset

func (m *FeatureRequireListRequest) Reset()

func (*FeatureRequireListRequest) String

func (m *FeatureRequireListRequest) String() string

type FeatureRequireListResponse

type FeatureRequireListResponse struct {
	Code        uint32         `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	RequireList []*Requirement `protobuf:"bytes,2,rep,name=RequireList" json:"RequireList,omitempty"`
}

func (*FeatureRequireListResponse) Descriptor

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

func (*FeatureRequireListResponse) GetCode

func (m *FeatureRequireListResponse) GetCode() uint32

func (*FeatureRequireListResponse) GetRequireList

func (m *FeatureRequireListResponse) GetRequireList() []*Requirement

func (*FeatureRequireListResponse) ProtoMessage

func (*FeatureRequireListResponse) ProtoMessage()

func (*FeatureRequireListResponse) Reset

func (m *FeatureRequireListResponse) Reset()

func (*FeatureRequireListResponse) String

func (m *FeatureRequireListResponse) String() string

type File

type File struct {
	FileName          string `protobuf:"bytes,1,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
	FileSize          uint64 `protobuf:"varint,2,opt,name=file_size,json=fileSize" json:"file_size,omitempty"`
	FilePolicy        string `protobuf:"bytes,3,opt,name=file_policy,json=filePolicy" json:"file_policy,omitempty"`
	FileNumber        uint64 `protobuf:"varint,4,opt,name=file_number,json=fileNumber" json:"file_number,omitempty"`
	FileHash          string `protobuf:"bytes,5,opt,name=file_hash,json=fileHash" json:"file_hash,omitempty"`
	AuthorizedStorage string `protobuf:"bytes,6,opt,name=authorized_storage,json=authorizedStorage" json:"authorized_storage,omitempty"`
}

func (*File) Descriptor

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

func (*File) GetAuthorizedStorage

func (m *File) GetAuthorizedStorage() string

func (*File) GetFileHash

func (m *File) GetFileHash() string

func (*File) GetFileName

func (m *File) GetFileName() string

func (*File) GetFileNumber

func (m *File) GetFileNumber() uint64

func (*File) GetFilePolicy

func (m *File) GetFilePolicy() string

func (*File) GetFileSize

func (m *File) GetFileSize() uint64

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

type FileUploadRequest

type FileUploadRequest struct {
	Username   string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	FileName   string `protobuf:"bytes,2,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
	FileSize   uint64 `protobuf:"varint,3,opt,name=file_size,json=fileSize" json:"file_size,omitempty"`
	FilePolicy string `protobuf:"bytes,4,opt,name=file_policy,json=filePolicy" json:"file_policy,omitempty"`
	FileNumber uint64 `protobuf:"varint,5,opt,name=file_number,json=fileNumber" json:"file_number,omitempty"`
	Signature  string `protobuf:"bytes,6,opt,name=signature" json:"signature,omitempty"`
}

func (*FileUploadRequest) Descriptor

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

func (*FileUploadRequest) GetFileName

func (m *FileUploadRequest) GetFileName() string

func (*FileUploadRequest) GetFileNumber

func (m *FileUploadRequest) GetFileNumber() uint64

func (*FileUploadRequest) GetFilePolicy

func (m *FileUploadRequest) GetFilePolicy() string

func (*FileUploadRequest) GetFileSize

func (m *FileUploadRequest) GetFileSize() uint64

func (*FileUploadRequest) GetSignature

func (m *FileUploadRequest) GetSignature() string

func (*FileUploadRequest) GetUsername

func (m *FileUploadRequest) GetUsername() string

func (*FileUploadRequest) ProtoMessage

func (*FileUploadRequest) ProtoMessage()

func (*FileUploadRequest) Reset

func (m *FileUploadRequest) Reset()

func (*FileUploadRequest) String

func (m *FileUploadRequest) String() string

type FileUploadResponse

type FileUploadResponse struct {
	Result          string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	Message         string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	PresignedPutUrl string `protobuf:"bytes,3,opt,name=presigned_put_url,json=presignedPutUrl" json:"presigned_put_url,omitempty"`
}

func (*FileUploadResponse) Descriptor

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

func (*FileUploadResponse) GetMessage

func (m *FileUploadResponse) GetMessage() string

func (*FileUploadResponse) GetPresignedPutUrl

func (m *FileUploadResponse) GetPresignedPutUrl() string

func (*FileUploadResponse) GetResult

func (m *FileUploadResponse) GetResult() string

func (*FileUploadResponse) ProtoMessage

func (*FileUploadResponse) ProtoMessage()

func (*FileUploadResponse) Reset

func (m *FileUploadResponse) Reset()

func (*FileUploadResponse) String

func (m *FileUploadResponse) String() string

type FileUploadStatRequest

type FileUploadStatRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
}

func (*FileUploadStatRequest) Descriptor

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

func (*FileUploadStatRequest) GetFileName

func (m *FileUploadStatRequest) GetFileName() string

func (*FileUploadStatRequest) GetUsername

func (m *FileUploadStatRequest) GetUsername() string

func (*FileUploadStatRequest) ProtoMessage

func (*FileUploadStatRequest) ProtoMessage()

func (*FileUploadStatRequest) Reset

func (m *FileUploadStatRequest) Reset()

func (*FileUploadStatRequest) String

func (m *FileUploadStatRequest) String() string

type FileUploadStatResponse

type FileUploadStatResponse struct {
	Result  string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	Size    int64  `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
}

func (*FileUploadStatResponse) Descriptor

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

func (*FileUploadStatResponse) GetMessage

func (m *FileUploadStatResponse) GetMessage() string

func (*FileUploadStatResponse) GetResult

func (m *FileUploadStatResponse) GetResult() string

func (*FileUploadStatResponse) GetSize

func (m *FileUploadStatResponse) GetSize() int64

func (*FileUploadStatResponse) ProtoMessage

func (*FileUploadStatResponse) ProtoMessage()

func (*FileUploadStatResponse) Reset

func (m *FileUploadStatResponse) Reset()

func (*FileUploadStatResponse) String

func (m *FileUploadStatResponse) String() string

type InsertTokenRequest

type InsertTokenRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Token    string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
}

func (*InsertTokenRequest) Descriptor

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

func (*InsertTokenRequest) GetToken

func (m *InsertTokenRequest) GetToken() string

func (*InsertTokenRequest) GetUsername

func (m *InsertTokenRequest) GetUsername() string

func (*InsertTokenRequest) ProtoMessage

func (*InsertTokenRequest) ProtoMessage()

func (*InsertTokenRequest) Reset

func (m *InsertTokenRequest) Reset()

func (*InsertTokenRequest) String

func (m *InsertTokenRequest) String() string

type InsertTokenResponse

type InsertTokenResponse struct {
	Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
}

func (*InsertTokenResponse) Descriptor

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

func (*InsertTokenResponse) GetCode

func (m *InsertTokenResponse) GetCode() uint32

func (*InsertTokenResponse) ProtoMessage

func (*InsertTokenResponse) ProtoMessage()

func (*InsertTokenResponse) Reset

func (m *InsertTokenResponse) Reset()

func (*InsertTokenResponse) String

func (m *InsertTokenResponse) String() string

type Node

type Node struct {
	NodeId   string `protobuf:"bytes,1,opt,name=node_id,json=nodeId" json:"node_id,omitempty"`
	NodeIp   string `protobuf:"bytes,2,opt,name=node_ip,json=nodeIp" json:"node_ip,omitempty"`
	NodePort string `protobuf:"bytes,3,opt,name=node_port,json=nodePort" json:"node_port,omitempty"`
}

func (*Node) Descriptor

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

func (*Node) GetNodeId

func (m *Node) GetNodeId() string

func (*Node) GetNodeIp

func (m *Node) GetNodeIp() string

func (*Node) GetNodePort

func (m *Node) GetNodePort() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type NodeInfosResponse

type NodeInfosResponse struct {
	Code     uint32  `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	NodeNum  uint64  `protobuf:"varint,2,opt,name=node_num,json=nodeNum" json:"node_num,omitempty"`
	NodeList []*Node `protobuf:"bytes,3,rep,name=node_list,json=nodeList" json:"node_list,omitempty"`
}

func (*NodeInfosResponse) Descriptor

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

func (*NodeInfosResponse) GetCode

func (m *NodeInfosResponse) GetCode() uint32

func (*NodeInfosResponse) GetNodeList

func (m *NodeInfosResponse) GetNodeList() []*Node

func (*NodeInfosResponse) GetNodeNum

func (m *NodeInfosResponse) GetNodeNum() uint64

func (*NodeInfosResponse) ProtoMessage

func (*NodeInfosResponse) ProtoMessage()

func (*NodeInfosResponse) Reset

func (m *NodeInfosResponse) Reset()

func (*NodeInfosResponse) String

func (m *NodeInfosResponse) String() string

type RecentTx

type RecentTx struct {
	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId" json:"transaction_id,omitempty"`
	From          string `protobuf:"bytes,2,opt,name=from" json:"from,omitempty"`
	To            string `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"`
	Price         uint64 `protobuf:"varint,4,opt,name=price" json:"price,omitempty"`
	Type          uint64 `protobuf:"varint,5,opt,name=type" json:"type,omitempty"`
	Date          string `protobuf:"bytes,6,opt,name=date" json:"date,omitempty"`
	BlockId       uint64 `protobuf:"varint,7,opt,name=block_id,json=blockId" json:"block_id,omitempty"`
}

func (*RecentTx) Descriptor

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

func (*RecentTx) GetBlockId

func (m *RecentTx) GetBlockId() uint64

func (*RecentTx) GetDate

func (m *RecentTx) GetDate() string

func (*RecentTx) GetFrom

func (m *RecentTx) GetFrom() string

func (*RecentTx) GetPrice

func (m *RecentTx) GetPrice() uint64

func (*RecentTx) GetTo

func (m *RecentTx) GetTo() string

func (*RecentTx) GetTransactionId

func (m *RecentTx) GetTransactionId() string

func (*RecentTx) GetType

func (m *RecentTx) GetType() uint64

func (*RecentTx) ProtoMessage

func (*RecentTx) ProtoMessage()

func (*RecentTx) Reset

func (m *RecentTx) Reset()

func (*RecentTx) String

func (m *RecentTx) String() string

type RecentTxListRequest

type RecentTxListRequest struct {
}

func (*RecentTxListRequest) Descriptor

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

func (*RecentTxListRequest) ProtoMessage

func (*RecentTxListRequest) ProtoMessage()

func (*RecentTxListRequest) Reset

func (m *RecentTxListRequest) Reset()

func (*RecentTxListRequest) String

func (m *RecentTxListRequest) String() string

type RecentTxListResponse

type RecentTxListResponse struct {
	Code         uint32      `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	RecentTxList []*RecentTx `protobuf:"bytes,2,rep,name=RecentTxList" json:"RecentTxList,omitempty"`
}

func (*RecentTxListResponse) Descriptor

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

func (*RecentTxListResponse) GetCode

func (m *RecentTxListResponse) GetCode() uint32

func (*RecentTxListResponse) GetRecentTxList

func (m *RecentTxListResponse) GetRecentTxList() []*RecentTx

func (*RecentTxListResponse) ProtoMessage

func (*RecentTxListResponse) ProtoMessage()

func (*RecentTxListResponse) Reset

func (m *RecentTxListResponse) Reset()

func (*RecentTxListResponse) String

func (m *RecentTxListResponse) String() string

type Request

type Request struct {
	Txid    string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"`
	Account string `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetAccount

func (m *Request) GetAccount() string

func (*Request) GetTxid

func (m *Request) GetTxid() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Requirement

type Requirement struct {
	RequirementId   string `protobuf:"bytes,1,opt,name=requirement_id,json=requirementId" json:"requirement_id,omitempty"`
	Username        string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
	RequirementName string `protobuf:"bytes,3,opt,name=requirement_name,json=requirementName" json:"requirement_name,omitempty"`
	FeatureTag      uint64 `protobuf:"varint,4,opt,name=feature_tag,json=featureTag" json:"feature_tag,omitempty"`
	SamplePath      string `protobuf:"bytes,5,opt,name=sample_path,json=samplePath" json:"sample_path,omitempty"`
	SampleHash      string `protobuf:"bytes,6,opt,name=sample_hash,json=sampleHash" json:"sample_hash,omitempty"`
	ExpireTime      uint32 `protobuf:"varint,7,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"`
	Price           uint64 `protobuf:"varint,8,opt,name=price" json:"price,omitempty"`
	Description     string `protobuf:"bytes,9,opt,name=description" json:"description,omitempty"`
	PublishDate     uint32 `protobuf:"varint,10,opt,name=publish_date,json=publishDate" json:"publish_date,omitempty"`
}

func (*Requirement) Descriptor

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

func (*Requirement) GetDescription

func (m *Requirement) GetDescription() string

func (*Requirement) GetExpireTime

func (m *Requirement) GetExpireTime() uint32

func (*Requirement) GetFeatureTag

func (m *Requirement) GetFeatureTag() uint64

func (*Requirement) GetPrice

func (m *Requirement) GetPrice() uint64

func (*Requirement) GetPublishDate

func (m *Requirement) GetPublishDate() uint32

func (*Requirement) GetRequirementId

func (m *Requirement) GetRequirementId() string

func (*Requirement) GetRequirementName

func (m *Requirement) GetRequirementName() string

func (*Requirement) GetSampleHash

func (m *Requirement) GetSampleHash() string

func (*Requirement) GetSamplePath

func (m *Requirement) GetSamplePath() string

func (*Requirement) GetUsername

func (m *Requirement) GetUsername() string

func (*Requirement) ProtoMessage

func (*Requirement) ProtoMessage()

func (*Requirement) Reset

func (m *Requirement) Reset()

func (*Requirement) String

func (m *Requirement) String() string

type Response

type Response struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetMsg

func (m *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type Storage

type Storage struct {
	StorageHandler
}

func (*Storage) AgeUserToken

func (h *Storage) AgeUserToken(ctx context.Context, in *AgeTokenRequest, out *AgeTokenResponse) error

func (*Storage) DelUserToken

func (h *Storage) DelUserToken(ctx context.Context, in *DelTokenRequest, out *DelTokenResponse) error

func (*Storage) GetAllAssetList

func (h *Storage) GetAllAssetList(ctx context.Context, in *AssetListRequest, out *AssetListResponse) error

func (*Storage) GetAllRequirementList

func (h *Storage) GetAllRequirementList(ctx context.Context, in *AllRequest, out *AllRequireListResponse) error

func (*Storage) GetAllTxNum

func (h *Storage) GetAllTxNum(ctx context.Context, in *AllRequest, out *AllTxNumResponse) error

func (*Storage) GetAssetByAssetId

func (h *Storage) GetAssetByAssetId(ctx context.Context, in *AssetIdRequest, out *AssetInfoResponse) error

func (*Storage) GetAssetNumByDay

func (h *Storage) GetAssetNumByDay(ctx context.Context, in *AllRequest, out *DayAssetNumResponse) error

func (*Storage) GetAssetNumByWeek

func (h *Storage) GetAssetNumByWeek(ctx context.Context, in *AllRequest, out *WeekAssetNumResponse) error

func (*Storage) GetDownLoadURL

func (h *Storage) GetDownLoadURL(ctx context.Context, in *DownLoadRequest, out *DownLoadResponse) error

func (*Storage) GetFileUploadStat

func (h *Storage) GetFileUploadStat(ctx context.Context, in *FileUploadStatRequest, out *FileUploadStatResponse) error

func (*Storage) GetFileUploadURL

func (h *Storage) GetFileUploadURL(ctx context.Context, in *FileUploadRequest, out *FileUploadResponse) error

func (*Storage) GetNodeInfos

func (h *Storage) GetNodeInfos(ctx context.Context, in *AllRequest, out *NodeInfosResponse) error

func (*Storage) GetRecentTransferList

func (h *Storage) GetRecentTransferList(ctx context.Context, in *AllRequest, out *TransferListResponse) error

func (*Storage) GetRecentTxList

func (h *Storage) GetRecentTxList(ctx context.Context, in *RecentTxListRequest, out *RecentTxListResponse) error

func (*Storage) GetRequirementListByFeature

func (h *Storage) GetRequirementListByFeature(ctx context.Context, in *FeatureRequireListRequest, out *FeatureRequireListResponse) error

func (*Storage) GetRequirementNumByDay

func (h *Storage) GetRequirementNumByDay(ctx context.Context, in *AllRequest, out *DayRequirementNumResponse) error

func (*Storage) GetRequirementNumByWeek

func (h *Storage) GetRequirementNumByWeek(ctx context.Context, in *AllRequest, out *WeekRequirementNumResponse) error

func (*Storage) GetSumTxAmount

func (h *Storage) GetSumTxAmount(ctx context.Context, in *AllRequest, out *SumTxAmountResponse) error

func (*Storage) GetTx

func (h *Storage) GetTx(ctx context.Context, in *Request, out *Response) error

func (*Storage) GetTxNumByDay

func (h *Storage) GetTxNumByDay(ctx context.Context, in *AllRequest, out *DayTxNumResponse) error

func (*Storage) GetTxNumByWeek

func (h *Storage) GetTxNumByWeek(ctx context.Context, in *AllRequest, out *WeekTxNumResponse) error

func (*Storage) GetUserAssetList

func (h *Storage) GetUserAssetList(ctx context.Context, in *UserAssetListRequest, out *UserAssetListResponse) error

func (*Storage) GetUserDataPresale

func (h *Storage) GetUserDataPresale(ctx context.Context, in *UserRequest, out *UserDataPresaleResponse) error

func (*Storage) GetUserFavorit

func (h *Storage) GetUserFavorit(ctx context.Context, in *UserRequest, out *UserFavoritResponse) error

func (*Storage) GetUserFileList

func (h *Storage) GetUserFileList(ctx context.Context, in *UserFileListRequest, out *UserFileListResponse) error

func (*Storage) GetUserPurchaseAssetList

func (h *Storage) GetUserPurchaseAssetList(ctx context.Context, in *UserRequest, out *UserAssetListResponse) error

func (*Storage) GetUserRequirementList

func (h *Storage) GetUserRequirementList(ctx context.Context, in *UserRequireListRequest, out *UserRequireListResponse) error

func (*Storage) GetUserToken

func (h *Storage) GetUserToken(ctx context.Context, in *TokenRequest, out *TokenResponse) error

func (*Storage) GetUserTxList

func (h *Storage) GetUserTxList(ctx context.Context, in *UserRequest, out *UserTxListResponse) error

func (*Storage) InsertUserToken

func (h *Storage) InsertUserToken(ctx context.Context, in *InsertTokenRequest, out *InsertTokenResponse) error

type StorageClient

type StorageClient interface {
	GetFileUploadURL(ctx context.Context, in *FileUploadRequest, opts ...client.CallOption) (*FileUploadResponse, error)
	GetFileUploadStat(ctx context.Context, in *FileUploadStatRequest, opts ...client.CallOption) (*FileUploadStatResponse, error)
	GetDownLoadURL(ctx context.Context, in *DownLoadRequest, opts ...client.CallOption) (*DownLoadResponse, error)
	GetUserFileList(ctx context.Context, in *UserFileListRequest, opts ...client.CallOption) (*UserFileListResponse, error)
	GetTx(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
	// 	rpc GetUserInfo(UserInfoRequest) returns (UserInfoResponse) {}
	// 	rpc GetUserNum(UserNumRequest) returns (UserNumResponse) {}
	InsertUserToken(ctx context.Context, in *InsertTokenRequest, opts ...client.CallOption) (*InsertTokenResponse, error)
	GetUserToken(ctx context.Context, in *TokenRequest, opts ...client.CallOption) (*TokenResponse, error)
	DelUserToken(ctx context.Context, in *DelTokenRequest, opts ...client.CallOption) (*DelTokenResponse, error)
	AgeUserToken(ctx context.Context, in *AgeTokenRequest, opts ...client.CallOption) (*AgeTokenResponse, error)
	GetUserRequirementList(ctx context.Context, in *UserRequireListRequest, opts ...client.CallOption) (*UserRequireListResponse, error)
	GetRequirementListByFeature(ctx context.Context, in *FeatureRequireListRequest, opts ...client.CallOption) (*FeatureRequireListResponse, error)
	GetAllRequirementList(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*AllRequireListResponse, error)
	GetUserAssetList(ctx context.Context, in *UserAssetListRequest, opts ...client.CallOption) (*UserAssetListResponse, error)
	GetUserPurchaseAssetList(ctx context.Context, in *UserRequest, opts ...client.CallOption) (*UserAssetListResponse, error)
	GetAssetByAssetId(ctx context.Context, in *AssetIdRequest, opts ...client.CallOption) (*AssetInfoResponse, error)
	GetAllAssetList(ctx context.Context, in *AssetListRequest, opts ...client.CallOption) (*AssetListResponse, error)
	GetRecentTxList(ctx context.Context, in *RecentTxListRequest, opts ...client.CallOption) (*RecentTxListResponse, error)
	GetUserTxList(ctx context.Context, in *UserRequest, opts ...client.CallOption) (*UserTxListResponse, error)
	GetRecentTransferList(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*TransferListResponse, error)
	GetAllTxNum(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*AllTxNumResponse, error)
	GetTxNumByDay(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*DayTxNumResponse, error)
	GetTxNumByWeek(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*WeekTxNumResponse, error)
	GetAssetNumByDay(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*DayAssetNumResponse, error)
	GetAssetNumByWeek(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*WeekAssetNumResponse, error)
	GetRequirementNumByDay(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*DayRequirementNumResponse, error)
	GetRequirementNumByWeek(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*WeekRequirementNumResponse, error)
	GetSumTxAmount(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*SumTxAmountResponse, error)
	GetNodeInfos(ctx context.Context, in *AllRequest, opts ...client.CallOption) (*NodeInfosResponse, error)
	GetUserFavorit(ctx context.Context, in *UserRequest, opts ...client.CallOption) (*UserFavoritResponse, error)
	GetUserDataPresale(ctx context.Context, in *UserRequest, opts ...client.CallOption) (*UserDataPresaleResponse, error)
}

func NewStorageClient

func NewStorageClient(serviceName string, c client.Client) StorageClient

type StorageHandler

type StorageHandler interface {
	GetFileUploadURL(context.Context, *FileUploadRequest, *FileUploadResponse) error
	GetFileUploadStat(context.Context, *FileUploadStatRequest, *FileUploadStatResponse) error
	GetDownLoadURL(context.Context, *DownLoadRequest, *DownLoadResponse) error
	GetUserFileList(context.Context, *UserFileListRequest, *UserFileListResponse) error
	GetTx(context.Context, *Request, *Response) error
	// 	rpc GetUserInfo(UserInfoRequest) returns (UserInfoResponse) {}
	// 	rpc GetUserNum(UserNumRequest) returns (UserNumResponse) {}
	InsertUserToken(context.Context, *InsertTokenRequest, *InsertTokenResponse) error
	GetUserToken(context.Context, *TokenRequest, *TokenResponse) error
	DelUserToken(context.Context, *DelTokenRequest, *DelTokenResponse) error
	AgeUserToken(context.Context, *AgeTokenRequest, *AgeTokenResponse) error
	GetUserRequirementList(context.Context, *UserRequireListRequest, *UserRequireListResponse) error
	GetRequirementListByFeature(context.Context, *FeatureRequireListRequest, *FeatureRequireListResponse) error
	GetAllRequirementList(context.Context, *AllRequest, *AllRequireListResponse) error
	GetUserAssetList(context.Context, *UserAssetListRequest, *UserAssetListResponse) error
	GetUserPurchaseAssetList(context.Context, *UserRequest, *UserAssetListResponse) error
	GetAssetByAssetId(context.Context, *AssetIdRequest, *AssetInfoResponse) error
	GetAllAssetList(context.Context, *AssetListRequest, *AssetListResponse) error
	GetRecentTxList(context.Context, *RecentTxListRequest, *RecentTxListResponse) error
	GetUserTxList(context.Context, *UserRequest, *UserTxListResponse) error
	GetRecentTransferList(context.Context, *AllRequest, *TransferListResponse) error
	GetAllTxNum(context.Context, *AllRequest, *AllTxNumResponse) error
	GetTxNumByDay(context.Context, *AllRequest, *DayTxNumResponse) error
	GetTxNumByWeek(context.Context, *AllRequest, *WeekTxNumResponse) error
	GetAssetNumByDay(context.Context, *AllRequest, *DayAssetNumResponse) error
	GetAssetNumByWeek(context.Context, *AllRequest, *WeekAssetNumResponse) error
	GetRequirementNumByDay(context.Context, *AllRequest, *DayRequirementNumResponse) error
	GetRequirementNumByWeek(context.Context, *AllRequest, *WeekRequirementNumResponse) error
	GetSumTxAmount(context.Context, *AllRequest, *SumTxAmountResponse) error
	GetNodeInfos(context.Context, *AllRequest, *NodeInfosResponse) error
	GetUserFavorit(context.Context, *UserRequest, *UserFavoritResponse) error
	GetUserDataPresale(context.Context, *UserRequest, *UserDataPresaleResponse) error
}

type SumTxAmountRequest

type SumTxAmountRequest struct {
}

func (*SumTxAmountRequest) Descriptor

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

func (*SumTxAmountRequest) ProtoMessage

func (*SumTxAmountRequest) ProtoMessage()

func (*SumTxAmountRequest) Reset

func (m *SumTxAmountRequest) Reset()

func (*SumTxAmountRequest) String

func (m *SumTxAmountRequest) String() string

type SumTxAmountResponse

type SumTxAmountResponse struct {
	Code      uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	AmountSum uint64 `protobuf:"varint,2,opt,name=amount_sum,json=amountSum" json:"amount_sum,omitempty"`
}

func (*SumTxAmountResponse) Descriptor

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

func (*SumTxAmountResponse) GetAmountSum

func (m *SumTxAmountResponse) GetAmountSum() uint64

func (*SumTxAmountResponse) GetCode

func (m *SumTxAmountResponse) GetCode() uint32

func (*SumTxAmountResponse) ProtoMessage

func (*SumTxAmountResponse) ProtoMessage()

func (*SumTxAmountResponse) Reset

func (m *SumTxAmountResponse) Reset()

func (*SumTxAmountResponse) String

func (m *SumTxAmountResponse) String() string

type TokenRequest

type TokenRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Token    string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
}

func (*TokenRequest) Descriptor

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

func (*TokenRequest) GetToken

func (m *TokenRequest) GetToken() string

func (*TokenRequest) GetUsername

func (m *TokenRequest) GetUsername() string

func (*TokenRequest) ProtoMessage

func (*TokenRequest) ProtoMessage()

func (*TokenRequest) Reset

func (m *TokenRequest) Reset()

func (*TokenRequest) String

func (m *TokenRequest) String() string

type TokenResponse

type TokenResponse struct {
	Username   string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	Token      string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
	InsertTime int64  `protobuf:"varint,3,opt,name=insert_time,json=insertTime" json:"insert_time,omitempty"`
	Code       uint32 `protobuf:"varint,4,opt,name=code" json:"code,omitempty"`
}

func (*TokenResponse) Descriptor

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

func (*TokenResponse) GetCode

func (m *TokenResponse) GetCode() uint32

func (*TokenResponse) GetInsertTime

func (m *TokenResponse) GetInsertTime() int64

func (*TokenResponse) GetToken

func (m *TokenResponse) GetToken() string

func (*TokenResponse) GetUsername

func (m *TokenResponse) GetUsername() string

func (*TokenResponse) ProtoMessage

func (*TokenResponse) ProtoMessage()

func (*TokenResponse) Reset

func (m *TokenResponse) Reset()

func (*TokenResponse) String

func (m *TokenResponse) String() string

type Transfer

type Transfer struct {
	TxId     string `protobuf:"bytes,1,opt,name=tx_id,json=txId" json:"tx_id,omitempty"`
	TxTime   string `protobuf:"bytes,2,opt,name=tx_time,json=txTime" json:"tx_time,omitempty"`
	Price    uint64 `protobuf:"varint,3,opt,name=price" json:"price,omitempty"`
	From     string `protobuf:"bytes,4,opt,name=from" json:"from,omitempty"`
	To       string `protobuf:"bytes,5,opt,name=to" json:"to,omitempty"`
	BlockNum uint64 `protobuf:"varint,6,opt,name=block_num,json=blockNum" json:"block_num,omitempty"`
}

func (*Transfer) Descriptor

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

func (*Transfer) GetBlockNum

func (m *Transfer) GetBlockNum() uint64

func (*Transfer) GetFrom

func (m *Transfer) GetFrom() string

func (*Transfer) GetPrice

func (m *Transfer) GetPrice() uint64

func (*Transfer) GetTo

func (m *Transfer) GetTo() string

func (*Transfer) GetTxId

func (m *Transfer) GetTxId() string

func (*Transfer) GetTxTime

func (m *Transfer) GetTxTime() string

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) Reset

func (m *Transfer) Reset()

func (*Transfer) String

func (m *Transfer) String() string

type TransferListResponse

type TransferListResponse struct {
	Code         uint32      `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	TransferList []*Transfer `protobuf:"bytes,2,rep,name=transfer_list,json=transferList" json:"transfer_list,omitempty"`
}

func (*TransferListResponse) Descriptor

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

func (*TransferListResponse) GetCode

func (m *TransferListResponse) GetCode() uint32

func (*TransferListResponse) GetTransferList

func (m *TransferListResponse) GetTransferList() []*Transfer

func (*TransferListResponse) ProtoMessage

func (*TransferListResponse) ProtoMessage()

func (*TransferListResponse) Reset

func (m *TransferListResponse) Reset()

func (*TransferListResponse) String

func (m *TransferListResponse) String() string

type UserAsset

type UserAsset struct {
	AssetId     string `protobuf:"bytes,1,opt,name=asset_id,json=assetId" json:"asset_id,omitempty"`
	AssetName   string `protobuf:"bytes,2,opt,name=asset_name,json=assetName" json:"asset_name,omitempty"`
	FeatureTag  uint64 `protobuf:"varint,3,opt,name=feature_tag,json=featureTag" json:"feature_tag,omitempty"`
	SamplePath  string `protobuf:"bytes,4,opt,name=sample_path,json=samplePath" json:"sample_path,omitempty"`
	SampleHash  string `protobuf:"bytes,5,opt,name=sample_hash,json=sampleHash" json:"sample_hash,omitempty"`
	StoragePath string `protobuf:"bytes,6,opt,name=storage_path,json=storagePath" json:"storage_path,omitempty"`
	StorageHash string `protobuf:"bytes,7,opt,name=storage_hash,json=storageHash" json:"storage_hash,omitempty"`
	ExpireTime  uint32 `protobuf:"varint,8,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"`
	Price       uint64 `protobuf:"varint,9,opt,name=price" json:"price,omitempty"`
	Description string `protobuf:"bytes,10,opt,name=description" json:"description,omitempty"`
	UploadDate  uint32 `protobuf:"varint,11,opt,name=upload_date,json=uploadDate" json:"upload_date,omitempty"`
}

func (*UserAsset) Descriptor

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

func (*UserAsset) GetAssetId

func (m *UserAsset) GetAssetId() string

func (*UserAsset) GetAssetName

func (m *UserAsset) GetAssetName() string

func (*UserAsset) GetDescription

func (m *UserAsset) GetDescription() string

func (*UserAsset) GetExpireTime

func (m *UserAsset) GetExpireTime() uint32

func (*UserAsset) GetFeatureTag

func (m *UserAsset) GetFeatureTag() uint64

func (*UserAsset) GetPrice

func (m *UserAsset) GetPrice() uint64

func (*UserAsset) GetSampleHash

func (m *UserAsset) GetSampleHash() string

func (*UserAsset) GetSamplePath

func (m *UserAsset) GetSamplePath() string

func (*UserAsset) GetStorageHash

func (m *UserAsset) GetStorageHash() string

func (*UserAsset) GetStoragePath

func (m *UserAsset) GetStoragePath() string

func (*UserAsset) GetUploadDate

func (m *UserAsset) GetUploadDate() uint32

func (*UserAsset) ProtoMessage

func (*UserAsset) ProtoMessage()

func (*UserAsset) Reset

func (m *UserAsset) Reset()

func (*UserAsset) String

func (m *UserAsset) String() string

type UserAssetListRequest

type UserAssetListRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}

func (*UserAssetListRequest) Descriptor

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

func (*UserAssetListRequest) GetUsername

func (m *UserAssetListRequest) GetUsername() string

func (*UserAssetListRequest) ProtoMessage

func (*UserAssetListRequest) ProtoMessage()

func (*UserAssetListRequest) Reset

func (m *UserAssetListRequest) Reset()

func (*UserAssetListRequest) String

func (m *UserAssetListRequest) String() string

type UserAssetListResponse

type UserAssetListResponse struct {
	Code          uint32       `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	UserAssetList []*UserAsset `protobuf:"bytes,2,rep,name=UserAssetList" json:"UserAssetList,omitempty"`
}

func (*UserAssetListResponse) Descriptor

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

func (*UserAssetListResponse) GetCode

func (m *UserAssetListResponse) GetCode() uint32

func (*UserAssetListResponse) GetUserAssetList

func (m *UserAssetListResponse) GetUserAssetList() []*UserAsset

func (*UserAssetListResponse) ProtoMessage

func (*UserAssetListResponse) ProtoMessage()

func (*UserAssetListResponse) Reset

func (m *UserAssetListResponse) Reset()

func (*UserAssetListResponse) String

func (m *UserAssetListResponse) String() string

type UserDataPresaleResponse

type UserDataPresaleResponse struct {
	Code            uint32         `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	DataPresaleList []*DataPresale `protobuf:"bytes,2,rep,name=data_presale_list,json=dataPresaleList" json:"data_presale_list,omitempty"`
}

func (*UserDataPresaleResponse) Descriptor

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

func (*UserDataPresaleResponse) GetCode

func (m *UserDataPresaleResponse) GetCode() uint32

func (*UserDataPresaleResponse) GetDataPresaleList

func (m *UserDataPresaleResponse) GetDataPresaleList() []*DataPresale

func (*UserDataPresaleResponse) ProtoMessage

func (*UserDataPresaleResponse) ProtoMessage()

func (*UserDataPresaleResponse) Reset

func (m *UserDataPresaleResponse) Reset()

func (*UserDataPresaleResponse) String

func (m *UserDataPresaleResponse) String() string

type UserFavoritResponse

type UserFavoritResponse struct {
	Code        uint32     `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	FavoritList []*Favorit `protobuf:"bytes,2,rep,name=favorit_list,json=favoritList" json:"favorit_list,omitempty"`
}

func (*UserFavoritResponse) Descriptor

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

func (*UserFavoritResponse) GetCode

func (m *UserFavoritResponse) GetCode() uint32

func (*UserFavoritResponse) GetFavoritList

func (m *UserFavoritResponse) GetFavoritList() []*Favorit

func (*UserFavoritResponse) ProtoMessage

func (*UserFavoritResponse) ProtoMessage()

func (*UserFavoritResponse) Reset

func (m *UserFavoritResponse) Reset()

func (*UserFavoritResponse) String

func (m *UserFavoritResponse) String() string

type UserFileListRequest

type UserFileListRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}

func (*UserFileListRequest) Descriptor

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

func (*UserFileListRequest) GetUsername

func (m *UserFileListRequest) GetUsername() string

func (*UserFileListRequest) ProtoMessage

func (*UserFileListRequest) ProtoMessage()

func (*UserFileListRequest) Reset

func (m *UserFileListRequest) Reset()

func (*UserFileListRequest) String

func (m *UserFileListRequest) String() string

type UserFileListResponse

type UserFileListResponse struct {
	Code     uint32  `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	FileList []*File `protobuf:"bytes,2,rep,name=FileList" json:"FileList,omitempty"`
}

func (*UserFileListResponse) Descriptor

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

func (*UserFileListResponse) GetCode

func (m *UserFileListResponse) GetCode() uint32

func (*UserFileListResponse) GetFileList

func (m *UserFileListResponse) GetFileList() []*File

func (*UserFileListResponse) ProtoMessage

func (*UserFileListResponse) ProtoMessage()

func (*UserFileListResponse) Reset

func (m *UserFileListResponse) Reset()

func (*UserFileListResponse) String

func (m *UserFileListResponse) String() string

type UserRequest

type UserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}

func (*UserRequest) Descriptor

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

func (*UserRequest) GetUsername

func (m *UserRequest) GetUsername() string

func (*UserRequest) ProtoMessage

func (*UserRequest) ProtoMessage()

func (*UserRequest) Reset

func (m *UserRequest) Reset()

func (*UserRequest) String

func (m *UserRequest) String() string

type UserRequireListRequest

type UserRequireListRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}

func (*UserRequireListRequest) Descriptor

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

func (*UserRequireListRequest) GetUsername

func (m *UserRequireListRequest) GetUsername() string

func (*UserRequireListRequest) ProtoMessage

func (*UserRequireListRequest) ProtoMessage()

func (*UserRequireListRequest) Reset

func (m *UserRequireListRequest) Reset()

func (*UserRequireListRequest) String

func (m *UserRequireListRequest) String() string

type UserRequireListResponse

type UserRequireListResponse struct {
	Code        uint32         `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	RequireList []*Requirement `protobuf:"bytes,2,rep,name=RequireList" json:"RequireList,omitempty"`
}

func (*UserRequireListResponse) Descriptor

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

func (*UserRequireListResponse) GetCode

func (m *UserRequireListResponse) GetCode() uint32

func (*UserRequireListResponse) GetRequireList

func (m *UserRequireListResponse) GetRequireList() []*Requirement

func (*UserRequireListResponse) ProtoMessage

func (*UserRequireListResponse) ProtoMessage()

func (*UserRequireListResponse) Reset

func (m *UserRequireListResponse) Reset()

func (*UserRequireListResponse) String

func (m *UserRequireListResponse) String() string

type UserTxListResponse

type UserTxListResponse struct {
	Code         uint32      `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	RecentTxList []*RecentTx `protobuf:"bytes,2,rep,name=RecentTxList" json:"RecentTxList,omitempty"`
}

func (*UserTxListResponse) Descriptor

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

func (*UserTxListResponse) GetCode

func (m *UserTxListResponse) GetCode() uint32

func (*UserTxListResponse) GetRecentTxList

func (m *UserTxListResponse) GetRecentTxList() []*RecentTx

func (*UserTxListResponse) ProtoMessage

func (*UserTxListResponse) ProtoMessage()

func (*UserTxListResponse) Reset

func (m *UserTxListResponse) Reset()

func (*UserTxListResponse) String

func (m *UserTxListResponse) String() string

type WeekAssetNumResponse

type WeekAssetNumResponse struct {
	Code         uint32   `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	WeekAssetNum []uint64 `protobuf:"varint,2,rep,packed,name=week_asset_num,json=weekAssetNum" json:"week_asset_num,omitempty"`
}

func (*WeekAssetNumResponse) Descriptor

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

func (*WeekAssetNumResponse) GetCode

func (m *WeekAssetNumResponse) GetCode() uint32

func (*WeekAssetNumResponse) GetWeekAssetNum

func (m *WeekAssetNumResponse) GetWeekAssetNum() []uint64

func (*WeekAssetNumResponse) ProtoMessage

func (*WeekAssetNumResponse) ProtoMessage()

func (*WeekAssetNumResponse) Reset

func (m *WeekAssetNumResponse) Reset()

func (*WeekAssetNumResponse) String

func (m *WeekAssetNumResponse) String() string

type WeekRequirementNumResponse

type WeekRequirementNumResponse struct {
	Code               uint32   `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	WeekRequirementNum []uint64 `protobuf:"varint,2,rep,packed,name=week_requirement_num,json=weekRequirementNum" json:"week_requirement_num,omitempty"`
}

func (*WeekRequirementNumResponse) Descriptor

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

func (*WeekRequirementNumResponse) GetCode

func (m *WeekRequirementNumResponse) GetCode() uint32

func (*WeekRequirementNumResponse) GetWeekRequirementNum

func (m *WeekRequirementNumResponse) GetWeekRequirementNum() []uint64

func (*WeekRequirementNumResponse) ProtoMessage

func (*WeekRequirementNumResponse) ProtoMessage()

func (*WeekRequirementNumResponse) Reset

func (m *WeekRequirementNumResponse) Reset()

func (*WeekRequirementNumResponse) String

func (m *WeekRequirementNumResponse) String() string

type WeekTxNumResponse

type WeekTxNumResponse struct {
	Code      uint32   `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	WeekTxNum []uint64 `protobuf:"varint,2,rep,packed,name=week_tx_num,json=weekTxNum" json:"week_tx_num,omitempty"`
}

func (*WeekTxNumResponse) Descriptor

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

func (*WeekTxNumResponse) GetCode

func (m *WeekTxNumResponse) GetCode() uint32

func (*WeekTxNumResponse) GetWeekTxNum

func (m *WeekTxNumResponse) GetWeekTxNum() []uint64

func (*WeekTxNumResponse) ProtoMessage

func (*WeekTxNumResponse) ProtoMessage()

func (*WeekTxNumResponse) Reset

func (m *WeekTxNumResponse) Reset()

func (*WeekTxNumResponse) String

func (m *WeekTxNumResponse) String() string

Jump to

Keyboard shortcuts

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