Documentation ¶
Index ¶
- type Repository
- func (r Repository) DeleteBySymbol(symbol string) error
- func (r *Repository) FindCoinByID(id uint64) (*models.Coin, error)
- func (r *Repository) FindIdBySymbol(symbol string) (uint64, error)
- func (r *Repository) FindSymbolById(id uint64) (string, error)
- func (r *Repository) GetAllCoins() ([]*models.Coin, error)
- func (r Repository) ResetCoinDelegationNotInListIds(idList []uint64) error
- func (r *Repository) Save(c *models.Coin) error
- func (r Repository) SaveAllIfNotExist(coins []*models.Coin) error
- func (r *Repository) UpdateCoinDelegation(id uint64, delegated uint64) error
- func (r *Repository) UpdateCoinOwner(symbol string, creationAddressID uint64) error
- func (r *Repository) UpdateCoinTransaction(symbol string, creationTransactionID uint64) 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) 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) 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
Click to show internal directories.
Click to hide internal directories.