package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Functions

NewMonotonousCounter creates new counter with initial value.
NewPersistentStrictMonotonicCounter creates a new PersistentStrictMonotonicCounter which inserts the default processed index to the storage layer and creates new counter with defaultIndex value.

# Variables

ErrIncorrectValue indicates that a processed value is lower or equal than current value.

# Structs

PersistentStrictMonotonicCounter represents the consumer progress with strict monotonic counter.
StrictMonotonousCounter is a helper struct which implements a strict monotonous counter.