coin

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: 3 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) DeleteBySymbol

func (r Repository) DeleteBySymbol(symbol string) error

func (*Repository) FindCoinByID

func (r *Repository) FindCoinByID(id uint64) (*models.Coin, error)

Find coin by symbol

func (*Repository) FindIdBySymbol

func (r *Repository) FindIdBySymbol(symbol string) (uint64, error)

Find coin id by symbol

func (*Repository) FindSymbolById

func (r *Repository) FindSymbolById(id uint64) (string, error)

func (*Repository) GetAllCoins

func (r *Repository) GetAllCoins() ([]*models.Coin, error)

func (Repository) ResetCoinDelegationNotInListIds

func (r Repository) ResetCoinDelegationNotInListIds(idList []uint64) error

func (*Repository) Save

func (r *Repository) Save(c *models.Coin) error

func (Repository) SaveAllIfNotExist

func (r Repository) SaveAllIfNotExist(coins []*models.Coin) error

func (*Repository) UpdateCoinDelegation

func (r *Repository) UpdateCoinDelegation(id uint64, delegated uint64) error

func (*Repository) UpdateCoinOwner

func (r *Repository) UpdateCoinOwner(symbol string, creationAddressID uint64) error

func (*Repository) UpdateCoinTransaction

func (r *Repository) UpdateCoinTransaction(symbol string, creationTransactionID uint64) error

Jump to

Keyboard shortcuts

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