Documentation ¶
Overview ¶
Package db provides the database for the consumer service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerDB ¶
type ConsumerDB interface { ConsumerDBWriter ConsumerDBReader }
ConsumerDB is the interface for the ConsumerDB.
type ConsumerDBReader ¶
type ConsumerDBReader interface { // ReadBlockNumberByChainID reads an event from the database by chainID. ReadBlockNumberByChainID(ctx context.Context, eventType int8, chainID uint32) (*uint64, error) // DB gets the underlying gorm db. DB() *gorm.DB }
ConsumerDBReader is the interface for reading events from the ConsumerDB.
Click to show internal directories.
Click to hide internal directories.