block_listener

package
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 5 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL