Documentation
¶
Index ¶
- type ByBalance
- type Repository
- func (repository Repository) GetAllAddresses() []models.Address
- func (repository Repository) GetBalancesByCoinSymbol(coinSymbol string, pagination *tools.Pagination) []models.Balance
- func (repository Repository) GetByAddress(noahAddress string) *models.Address
- func (repository Repository) GetByAddresses(noahAddresses []string) []models.Address
- type Resource
- type ResourceTopAddresses
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByBalance ¶ added in v0.2.6
type ByBalance []ResourceTopAddresses
type Repository ¶
func NewRepository ¶
func NewRepository(db *pg.DB) *Repository
func (Repository) GetAllAddresses ¶ added in v0.2.6
func (repository Repository) GetAllAddresses() []models.Address
Get all address model
func (Repository) GetBalancesByCoinSymbol ¶
func (repository Repository) GetBalancesByCoinSymbol(coinSymbol string, pagination *tools.Pagination) []models.Balance
Get address model by address
func (Repository) GetByAddress ¶
func (repository Repository) GetByAddress(noahAddress string) *models.Address
Get address model by address
func (Repository) GetByAddresses ¶
func (repository Repository) GetByAddresses(noahAddresses []string) []models.Address
Get list of addresses models
type Resource ¶
type Resource struct {
Address string `json:"address"`
Balances []resource.Interface `json:"balances"`
}
func (Resource) Transform ¶
func (r Resource) Transform(model resource.ItemInterface, resourceParams ...resource.ParamInterface) resource.Interface
type ResourceTopAddresses ¶ added in v0.2.6
type ResourceTopAddresses struct {
Address string `json:"address"`
Balance string `json:"balance"`
}
func (ResourceTopAddresses) Transform ¶ added in v0.2.6
func (r ResourceTopAddresses) Transform(model []models.Address) []ResourceTopAddresses
Click to show internal directories.
Click to hide internal directories.