Documentation ¶
Index ¶
- type ByBalance
- type Repository
- 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
- func (repository Repository) GetPaginatedAddresses(pagination *tools.Pagination) []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) 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
func (Repository) GetPaginatedAddresses ¶ added in v0.2.7
func (repository Repository) GetPaginatedAddresses(pagination *tools.Pagination) []models.Address
Get paginated list of addresses
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 resource.ItemInterface, resourceParams ...resource.ParamInterface) resource.Interface
func (ResourceTopAddresses) TransformCollection ¶ added in v0.2.7
func (r ResourceTopAddresses) TransformCollection(model []models.Address, pagination tools.Pagination) resource.PaginationResource
Click to show internal directories.
Click to hide internal directories.