Documentation ¶
Index ¶
- Constants
- func SaveFutureRightsForBlockRange(ctx context.Context, blockFrom, blockTo, headLevel int64, unit UnitOfWork, ...) (int, error)
- func SaveNewBakingRights(ctx context.Context, unit UnitOfWork, provider RightsProvider) (count int, err error)
- type BlocksRepo
- type RightsProvider
- type RightsRepo
- type UnitOfWork
Constants ¶
View Source
const BlocksRangeSize = 256
Variables ¶
This section is empty.
Functions ¶
func SaveFutureRightsForBlockRange ¶
func SaveFutureRightsForBlockRange(ctx context.Context, blockFrom, blockTo, headLevel int64, unit UnitOfWork, provider RightsProvider) (int, error)
func SaveNewBakingRights ¶
func SaveNewBakingRights(ctx context.Context, unit UnitOfWork, provider RightsProvider) (count int, err error)
Types ¶
type BlocksRepo ¶
type RightsProvider ¶
type RightsRepo ¶
type RightsRepo interface { List(limit, offset uint, filter models.BakingRightFilter) (rights []models.FutureBakingRight, err error) Find(filter models.BakingRightFilter) (found bool, right models.FutureBakingRight, err error) Create(right models.FutureBakingRight) error }
type UnitOfWork ¶
Click to show internal directories.
Click to hide internal directories.