Documentation
¶
Index ¶
- type Repo
- type Repository
- func (r *Repository) BakingList(accountID string, limit uint, offset uint) (count int64, baking []models.AccountBaking, err error)
- func (r *Repository) BakingTotal(accountID string) (total models.AccountBaking, err error)
- func (r *Repository) FutureBakingList(accountID string) (baking []models.AccountBaking, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { BakingTotal(string) (models.AccountBaking, error) BakingList(accountID string, limit uint, offset uint) (int64, []models.AccountBaking, error) FutureBakingList(accountID string) ([]models.AccountBaking, 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) BakingList ¶
func (r *Repository) BakingList(accountID string, limit uint, offset uint) (count int64, baking []models.AccountBaking, err error)
func (*Repository) BakingTotal ¶
func (r *Repository) BakingTotal(accountID string) (total models.AccountBaking, err error)
func (*Repository) FutureBakingList ¶
func (r *Repository) FutureBakingList(accountID string) (baking []models.AccountBaking, err error)
Click to show internal directories.
Click to hide internal directories.