Documentation
¶
Index ¶
- func AccountTxsGinRegister(r *gin.Engine)
- func DbClear(driveName string, db *sql.DB) error
- func DbInit(driveName string, db *sql.DB) error
- func TransferGin() gin.HandlerFunc
- type SearchOpt
- type Transfer
- type TransferType
- type TxTransfer
- type TxTransferPlugin
- func (ttp TxTransferPlugin) DbClear(driveName string, db *sql.DB) error
- func (ttp TxTransferPlugin) DbInit(driveName string, db *sql.DB) error
- func (ttp TxTransferPlugin) Doctor() error
- func (ttp TxTransferPlugin) Parse(blockHeader types.BlockHeader, itx qbasetxs.ITx) (typeName string, hit bool, err error)
- func (ttp TxTransferPlugin) RegisterGin(r *gin.Engine)
- func (ttp TxTransferPlugin) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountTxsGinRegister ¶
AccountTxsGinRegister 注册accountTxs
func TransferGin ¶
func TransferGin() gin.HandlerFunc
Types ¶
type TransferType ¶
type TransferType int
const ( Sender TransferType = iota Reciever )
func (TransferType) String ¶
func (ut TransferType) String() string
type TxTransfer ¶
type TxTransfer struct { ID int64 `json:"id"` // id ChainID string `json:"chain_id"` // chain_id Height int64 `json:"height"` // height Hash string `json:"hash"` // hash Address string `json:"address"` // address Coin string `json:"coin"` // coin Amount string `json:"amount"` // amount Type TransferType `json:"type"` // type TxStatus string `json:"txStatus"` Time time.Time `json:"time"` // time }
func ListByAddress ¶
func ListByAddress(chainId, address string, offset, limint int, opt *SearchOpt) ([]*TxTransfer, error)
type TxTransferPlugin ¶
type TxTransferPlugin struct{}
func (TxTransferPlugin) DbClear ¶
func (ttp TxTransferPlugin) DbClear(driveName string, db *sql.DB) error
func (TxTransferPlugin) DbInit ¶
func (ttp TxTransferPlugin) DbInit(driveName string, db *sql.DB) error
func (TxTransferPlugin) Doctor ¶ added in v0.0.3
func (ttp TxTransferPlugin) Doctor() error
func (TxTransferPlugin) Parse ¶
func (ttp TxTransferPlugin) Parse(blockHeader types.BlockHeader, itx qbasetxs.ITx) (typeName string, hit bool, err error)
func (TxTransferPlugin) RegisterGin ¶
func (ttp TxTransferPlugin) RegisterGin(r *gin.Engine)
func (TxTransferPlugin) Type ¶
func (ttp TxTransferPlugin) Type() string
Click to show internal directories.
Click to hide internal directories.