Documentation ¶
Index ¶
- Constants
- func SaveNewSnapshots(ctx context.Context, unit UnitOfWork, provider SnapshotProvider) (count int, err error)
- func SaveSnapshotForCycle(ctx context.Context, cycle int64, unit UnitOfWork, provider SnapshotProvider, ...) error
- type BlocksRepo
- type RightsRepo
- type SnapshotProvider
- type UnitOfWork
Constants ¶
View Source
const CyclesInAdvance = 6
View Source
const FirstCycleWithSnapshots = 7
Variables ¶
This section is empty.
Functions ¶
func SaveNewSnapshots ¶
func SaveNewSnapshots(ctx context.Context, unit UnitOfWork, provider SnapshotProvider) (count int, err error)
func SaveSnapshotForCycle ¶
func SaveSnapshotForCycle(ctx context.Context, cycle int64, unit UnitOfWork, provider SnapshotProvider, isFromFuture bool) error
Types ¶
type BlocksRepo ¶
type RightsRepo ¶
type SnapshotProvider ¶
Click to show internal directories.
Click to hide internal directories.