Documentation
¶
Index ¶
- type AssetBean
- type Block
- type Buy
- type CoreBaseReturn
- type CoreCommonReturn
- type Did
- type Favorite
- type FileBean
- type GetBalance
- type GetKeyValueResult
- type NodeInfo
- type NodeIp
- type PreSaleBean
- type RecordNum
- type Requirement
- type Transaction
- type Transfer
- type Tx
- type TxBean
- type TxPublic
- type UserTokenBean
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetBean ¶
type AssetBean struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
AssetId string `bson:"assetid"`
Info struct {
UserName string `bson:"username"`
AssetName string `bson:"assetname"`
AssetType uint64 `bson:"assettype"`
FeatureTag string `bson:"featuretag"`
SampleHash string `bson:"samplehash"`
StorageHash string `bson:"storagehash"`
ExpireTime uint32 `bson:"expiretime"`
OpType uint32 `bson:"optype"`
TokenType string `bson:"tokentype"`
Price uint64 `bson:"price"`
Description string `bson:"description"`
} `bson:"info"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
AssetBean struct
type Block ¶
type Block struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockHash string `bson:"block_hash"`
BlockNumber uint64 `bson:"block_number"`
PrevBlockHash string `bson:"prev_block_hash"`
Delegate string `bson:"delegate"`
Timestamp uint64 `bson:"timestamp"`
MerkleRoot string `bson:"merkle_root"`
Transactions []bson.ObjectId `bson:"transactions"`
CreateTime time.Time `bson:"create_time"`
}
Block struct
type Buy ¶
type Buy struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
DataExchangeId string `bson:"dataexchangeid"`
Info struct {
AssetId string `bson:"assetid"`
Username string `bson:"username"`
} `bson:"info"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
Buy struct
type CoreBaseReturn ¶
type CoreBaseReturn struct {
Errcode int64 `json:"errcode"`
Msg string `json:"msg"`
Result interface{} `json:"result"`
}
CoreBaseReturn struct
type CoreCommonReturn ¶
type CoreCommonReturn struct {
Errcode int64 `json:"errcode"`
Msg string `json:"msg"`
Result struct {
Trx struct {
Version uint32 `json:"version"`
CursorNum uint32 `json:"cursor_num"`
CursorLabel uint32 `json:"cursor_label"`
Lifetime uint64 `json:"lifetime"`
Sender string `json:"sender"`
Contract string `json:"contract"`
Method string `json:"method"`
Param string `json:"param"`
SigAlg uint32 `json:"sig_alg"`
Signature string `json:"signature"`
} `json:"trx"`
TrxHash string `json:"trx_hash"`
} `json:"result"`
}
CoreCommonReturn struct
type Favorite ¶
type Favorite struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
Goodsid string `bson:"goodsid"`
Goodstype string `bson:"goodstype"`
Optype float64 `bson:"optype"`
Username string `bson:"username"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
Favorite struct
type FileBean ¶
type FileBean struct {
ID bson.ObjectId `bson:"_id,omitempty"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
FileId string `bson:"filehash"`
Info struct {
UserName string `bson:"username"`
FileName string `bson:"filename"`
FileSize uint64 `bson:"filesize"`
FilePolicy string `bson:"filepolicy"`
FileNumber uint64 `bson:"filenumber"`
SimOrAss uint32 `bson:"simoreass"`
OpType uint32 `bson:"optype"`
StoreAddr string `bson:"storeaddr"`
} `bson:"info"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
FileBean struct
type GetBalance ¶
type GetBalance struct {
Tokentype string `bson:"tokentype"`
Value uint64 `bson:"value"`
Cny string `bson:"cny"`
Usd string `bson:"usd"`
CreateTime time.Time `bson:"create_time"`
}
GetBalance struct
type GetKeyValueResult ¶
type GetKeyValueResult struct {
Contract string `json:"contract"`
Object string `json:"object"`
Key string `json:"key"`
Value string `json:"value"`
}
GetKeyValueResult struct
type NodeInfo ¶
type NodeInfo struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
Nodeuuid string `bson:"nodeuuid"`
Seedip string `bson:"seedip"`
Port string `bson:"port"`
Slaveiplist string `bson:"slaveiplist"`
Capacity string `bson:"capacity"`
Latitude string `bson:"latitude"`
Longitude string `bson:"longitude"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
NodeInfo struct
type NodeIp ¶
type NodeIp struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
Nodeuuid string `bson:"nodeuuid"`
Seedip string `bson:"seedip"`
Port string `bson:"port"`
Slaveiplist string `bson:"slaveiplist"`
Capacity string `bson:"capacity"`
Latitude string `bson:"latitude"`
Longitude string `bson:"longitude"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
NodeIp struct
type PreSaleBean ¶
type PreSaleBean struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
Datapresaleid string `bson:"datapresaleid"`
Info struct {
Assetid string `bson:"assetid"`
Consumer string `bson:"consumer"`
Datareqid string `bson:"datareqid"`
Optype uint32 `bson:"optype"`
Username string `bson:"username"`
IsRead uint32 `bson:"isread"`
} `bson:"info"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
PreSaleBean struct
type RecordNum ¶
type RecordNum struct {
ID bson.ObjectId `bson:"_id,omitempty"`
TxNum int `bson:"tx_num"`
TxAmount uint64 `bson:"tx_amount"`
RequirementNum int `bson:"requirement_num"`
AssetNum int `bson:"asset_num"`
AccountNum int `bson:"account_num"`
Date string `bson:"date"`
Timestamp int `bson:"timestamp"`
CreateTime time.Time `bson:"create_time"`
}
RecordNum struct
type Requirement ¶
type Requirement struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
DataReqId string `bson:"datareqid"`
Info struct {
Description string `bson:"description"`
Expiretime uint64 `bson:"expiretime"`
Featuretag uint64 `bson:"featuretag"`
Optype uint32 `bson:"optype"`
Tokentype string `bson:"tokentype"`
Price uint64 `bson:"price"`
Reqname string `bson:"reqname"`
Reqtype uint64 `bson:"reqtype"`
Samplehash string `bson:"samplehash"`
Username string `bson:"username"`
} `bson:"info"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
Requirement struct
type Transaction ¶
type Transaction struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
CursorNum uint32 `bson:"cursor_num"`
CursorLabel uint32 `bson:"cursor_label"`
Lifetime uint64 `bson:"lifetime"`
Sender string `bson:"sender"`
Contract string `bson:"contract"`
Method string `bson:"method"`
Param interface{} `bson:"param"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
CreateTime time.Time `bson:"create_time"`
Version uint32 `bson:"version"`
}
Transaction struct
type Transfer ¶
type Transfer struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
From string `bson:"from"`
To string `bson:"to"`
TokenType string `bson:"tokentype"`
Value uint64 `bson:"value"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
Transfer struct
type Tx ¶
type Tx struct {
ID bson.ObjectId `bson:"_id,omitempty"`
BlockNumber uint32 `bson:"block_number"`
TransactionId string `bson:"transaction_id"`
SequenceNum uint32 `bson:"sequence_num"`
BlockHash string `bson:"block_hash"`
Contract string `bson:"contract"`
CursorLabel uint32 `bson:"cursor_label"`
CursorNum uint32 `bson:"cursor_num"`
Lifetime uint64 `bson:"lifetime"`
Method string `bson:"method"`
Param struct {
DataExchangeId string `bson:"dataexchangeid"`
Info struct {
AssetId string `bson:"assetid"`
Username string `bson:"username"`
} `bson:"info"`
} `bson:"param"`
Sender string `bson:"sender"`
SigAlg uint32 `bson:"sig_alg"`
Signature string `bson:"signature"`
Version uint32 `bson:"version"`
CreateTime time.Time `bson:"create_time"`
}
Tx struct
type TxBean ¶
type TxBean 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"`
}
TxBean struct
type UserTokenBean ¶
type UserTokenBean struct {
Username string `bson:"username"`
Token string `bson:"token"`
Ctime int64 `bson:"ctime"`
}
UserTokenBean struct
Click to show internal directories.
Click to hide internal directories.