Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { io.Closer ReadOnlyDatabase SaveConsensusInfo(ctx context.Context, consensusInfo *eventTypes.MinimalEpochConsensusInfo) error SaveLatestEpoch(ctx context.Context) error DatabasePath() string ClearDB() error }
Database interface with full access.
type ReadOnlyDatabase ¶
type ReadOnlyDatabase interface { ConsensusInfo(ctx context.Context, epoch uint64) (*eventTypes.MinimalEpochConsensusInfo, error) ConsensusInfos(fromEpoch uint64) ([]*eventTypes.MinimalEpochConsensusInfo, error) LatestSavedEpoch() (uint64, error) }
ReadOnlyDatabase defines a struct which only has read access to database methods.
Click to show internal directories.
Click to hide internal directories.