mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 15:56:45 +01:00
11 lines
453 B
Go
11 lines
453 B
Go
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)
|
|
}
|