Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is the snapshots repo implementation.
func New ¶
func New(db *gorm.DB) *Repository
New creates an instance of repository using the provided db.
func (*Repository) CreateBulk ¶
func (r *Repository) CreateBulk(rolls []models.Roll) error
func (*Repository) LastVotingPeriod ¶
func (r *Repository) LastVotingPeriod() (int64, error)
func (*Repository) RollsAndBakersInBlock ¶
func (r *Repository) RollsAndBakersInBlock(block int64) (int64, int64, error)
RollsInBlock returns the total number of rolls in a block.
Click to show internal directories.
Click to hide internal directories.