Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateTaskTableSQL = `` /* 447-byte string literal not displayed */
Functions ¶
func CreateIndexSQL ¶
func CreateTableSQL ¶
Types ¶
type EventBase ¶
type EventBase struct {
ID int64 `json:"id"`
Address string `json:"address"`
//Topics []string `json:"topics"`
//Data []byte `json:"data"`
BlockNumber uint64 `json:"blockNumber"`
BlockHash string `json:"blockHash"`
BlockTime int64 `json:"blockTime"`
TxHash string `json:"txHash"`
TxIndex uint `json:"txIndex"`
//LogIndex uint `json:"logIndex"`
Removed bool `json:"removed"`
}
type Task ¶
type Task struct {
ID uint `db:"id"`
Contract string `db:"contract"`
Abi string `db:"abi"`
ChainId uint64 `db:"chainId"`
Rpc string `db:"rpc"`
Interval int64 `db:"interval"` // 区块轮询间隔
Start uint64 `db:"start"`
Current uint64 `db:"current"`
Paused uint `db:"paused"` // 是否暂停
DeletedAt int64 `db:"deletedAt"`
UpdatedAt int64 `db:"updatedAt"`
}
func (*Task) TableNames ¶
func (*Task) TablePrefix ¶
Click to show internal directories.
Click to hide internal directories.