cic-chain-events/internal/store/store.go

11 lines
453 B
Go
Raw Normal View History

2023-01-05 12:45:09 +01:00
package store
// Store defines indexer get and set queries.
// GetMissingBlocks returns a generic iterable.
type Store[T any] interface {
GetSearchBounds(batchSize uint64, headCursor uint64, headBlockLag uint64) (lowerBound uint64, upperBound uint64, err error)
GetMissingBlocks(lowerBound uint64, upperBound uint64) (missingBlocksIterable T, err error)
SetSearchLowerBound(newLowerBound uint64) (err error)
CommitBlock(block uint64) (err error)
}