package
2.1.0+incompatible
Repository: https://github.com/keep-network/keep-core.git
Documentation: pkg.go.dev

# Functions

NewParameterPool creates a new instance of ParameterPool.
NewProtocolLatch returns a new instance of the latch with 0 counter value.
StartScheduler creates a new instance of a Scheduler that is responsible for managing long-running, computationally-expensive operations.

# Variables

ErrEmptyPool is returned by GetNow when the pool is empty.

# Structs

ParameterPool autogenerates parameters based on the provided generation function up to the pool size.
Persisted is a wrapper for the data that are stored, it adds an identifier.
ProtocolLatch increases the internal counter every time protocol execution starts and decreases the counter every time protocol execution completes.
Scheduler allows managing computationally heavy operations: stopping and resuming them.

# Interfaces

Persistence defines the expected interface for storing and loading generated and not-yet-used parameters on persistent storage.
Protocol defines the interface that allows the Scheduler to determine if the protocol is executing or not.