Documentation ¶
Index ¶
- type Repository
- func (r *Repository) DeleteAll(balances []*models.Balance) error
- func (r Repository) DeleteByCoinId(coinId uint64) error
- func (r *Repository) FindAllByAddress(addresses []string) ([]*models.Balance, error)
- func (r *Repository) SaveAll(balances []*models.Balance) error
- func (r *Repository) UpdateAll(balances []*models.Balance) error
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
}
func NewRepository ¶
func NewRepository(db *pg.DB) *Repository
func (Repository) DeleteByCoinId ¶
func (r Repository) DeleteByCoinId(coinId uint64) error
func (*Repository) FindAllByAddress ¶
func (r *Repository) FindAllByAddress(addresses []string) ([]*models.Balance, error)
Click to show internal directories.
Click to hide internal directories.