Documentation ¶
Index ¶
- Constants
- func NewORM(chainID *big.Int, db *sqlx.DB, lggr logger.Logger, cfg pg.QConfig) *orm
- func NewPerformedEventsScanner(lggr logger.Logger, poller logpoller.LogPoller, registryAddress common.Address, ...) *performedEventsScanner
- func NewUpkeepStateStore(orm ORM, lggr logger.Logger, scanner PerformedLogsScanner) *upkeepStateStore
- type ORM
- type PerformedLogsScanner
- type UpkeepStateStore
Constants ¶
View Source
const ( UpkeepStateStoreServiceName = "UpkeepStateStore" // CacheExpiration is the amount of time that we keep a record in the cache. CacheExpiration = 24 * time.Hour // GCInterval is the amount of time between cache cleanups. GCInterval = 2 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func NewUpkeepStateStore ¶
func NewUpkeepStateStore(orm ORM, lggr logger.Logger, scanner PerformedLogsScanner) *upkeepStateStore
NewUpkeepStateStore creates a new state store
Types ¶
type PerformedLogsScanner ¶
type UpkeepStateStore ¶
type UpkeepStateStore interface { ocr2keepers.UpkeepStateUpdater core.UpkeepStateReader Start(context.Context) error io.Closer }
UpkeepStateStore is the interface for managing upkeeps final state in a local store.
Click to show internal directories.
Click to hide internal directories.