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 { Address string `gorm:"address"` Topics []string `gorm:"topics"` Data []byte `gorm:"data"` BlockNumber uint64 `gorm:"blockNumber"` TxHash string `gorm:"txHash"` TxIndex uint `gorm:"txIndex"` BlockHash string `gorm:"blockHash"` LogIndex uint `gorm:"logIndex"` Removed bool `gorm:"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.