balance

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 2 Imported by: 0

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
}

func NewRepository

func NewRepository(db *pg.DB) *Repository

func (*Repository) DeleteAll

func (r *Repository) DeleteAll(balances []*models.Balance) error

func (Repository) DeleteByCoinId

func (r Repository) DeleteByCoinId(coinId uint64) error

func (*Repository) FindAllByAddress

func (r *Repository) FindAllByAddress(addresses []string) ([]*models.Balance, error)

func (*Repository) SaveAll

func (r *Repository) SaveAll(balances []*models.Balance) error

func (*Repository) UpdateAll

func (r *Repository) UpdateAll(balances []*models.Balance) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL