Documentation ¶
Index ¶
- type Repo
- type Repository
- func (r *Repository) EndorsingList(accountID string, limit uint, offset uint) (count int64, endorsing []models.AccountEndorsing, err error)
- func (r *Repository) EndorsingTotal(accountID string) (total models.AccountEndorsing, err error)
- func (r *Repository) FutureEndorsingList(accountID string) (endorsing []models.AccountEndorsing, err error)
- func (r *Repository) GetLostEndorsingCountAgg(filter models.AggTimeFilter) (items []models.AggTimeInt, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { FutureEndorsingList(accountID string) ([]models.AccountEndorsing, error) EndorsingTotal(string) (models.AccountEndorsing, error) EndorsingList(accountID string, limit uint, offset uint) (int64, []models.AccountEndorsing, error) GetLostEndorsingCountAgg(filter models.AggTimeFilter) (items []models.AggTimeInt, err error) }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is the account repo implementation.
func New ¶
func New(db *gorm.DB) *Repository
New creates an instance of repository using the provided db.
func (*Repository) EndorsingList ¶
func (r *Repository) EndorsingList(accountID string, limit uint, offset uint) (count int64, endorsing []models.AccountEndorsing, err error)
func (*Repository) EndorsingTotal ¶
func (r *Repository) EndorsingTotal(accountID string) (total models.AccountEndorsing, err error)
func (*Repository) FutureEndorsingList ¶
func (r *Repository) FutureEndorsingList(accountID string) (endorsing []models.AccountEndorsing, err error)
func (*Repository) GetLostEndorsingCountAgg ¶
func (r *Repository) GetLostEndorsingCountAgg(filter models.AggTimeFilter) (items []models.AggTimeInt, err error)
Click to show internal directories.
Click to hide internal directories.