Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockListener ¶
type BlockListener struct { GUID string `json:"guid"` BlockNumber *big.Int `json:"block_number" gorm:"serializer:u256"` Created uint64 `json:"created"` Updated uint64 `json:"updated"` }
func (BlockListener) TableName ¶
func (BlockListener) TableName() string
type BlockListenerDB ¶
type BlockListenerDB interface { BlockListenerDBView SaveOrUpdateLastBlockNumber(lastBlock BlockListener) error }
func NewBlockListenerDB ¶
func NewBlockListenerDB(db *gorm.DB) BlockListenerDB
type BlockListenerDBView ¶
type BlockListenerDBView interface {
GetLastBlockNumber() (lastBlock *BlockListener, err error)
}
Click to show internal directories.
Click to hide internal directories.