Documentation ¶
Index ¶
- Constants
- type VoteIndexerRepository
- func (repo *VoteIndexerRepository) DeleteOldValidatorVoteList(chainID, retentionPeriod string) (int64, error)
- func (repo *VoteIndexerRepository) InsertValidatorVoteList(chainInfoID int64, indexPointerHeight int64, ...) error
- func (repo *VoteIndexerRepository) SelectRecentMissValidatorVoteList(chainID string) ([]model.RecentValidatorVote, error)
Constants ¶
View Source
const IndexName = "voteindexer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VoteIndexerRepository ¶
type VoteIndexerRepository struct { *bun.DB indexerrepo.IMetaRepository // contains filtered or unexported fields }
func NewRepository ¶
func NewRepository(indexerDB common.IndexerDB, sqlTimeout time.Duration) VoteIndexerRepository
func (*VoteIndexerRepository) DeleteOldValidatorVoteList ¶
func (repo *VoteIndexerRepository) DeleteOldValidatorVoteList(chainID, retentionPeriod string) ( int64, error, )
func (*VoteIndexerRepository) InsertValidatorVoteList ¶
func (repo *VoteIndexerRepository) InsertValidatorVoteList( chainInfoID int64, indexPointerHeight int64, ValidatorVoteList []model.ValidatorVote, ) error
func (*VoteIndexerRepository) SelectRecentMissValidatorVoteList ¶
func (repo *VoteIndexerRepository) SelectRecentMissValidatorVoteList(chainID string) ([]model.RecentValidatorVote, error)
Click to show internal directories.
Click to hide internal directories.