Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomCoinsStatusData ¶
type Repository ¶
func NewRepository ¶
func NewRepository(db *pg.DB, baseCoinSymbol string) *Repository
func (Repository) GetBySymbol ¶
func (repository Repository) GetBySymbol(symbol string) *models.Coin
Get coin by symbol
func (*Repository) GetCustomCoinsStatusData ¶
func (repository *Repository) GetCustomCoinsStatusData() (CustomCoinsStatusData, error)
Get custom coins data for status page
func (Repository) GetPaginated ¶
func (repository Repository) GetPaginated(pagination *tools.Pagination, field *string, orderBy *string, symbol *string) []models.Coin
Get paginated list of blocks
type Resource ¶
type Resource struct { Crr uint64 `json:"crr"` Volume string `json:"volume"` ReserveBalance string `json:"reserve_balance"` Name string `json:"name"` Symbol string `json:"symbol"` Price string `json:"price"` StartPrice string `json:"start_price"` StartVolume string `json:"start_volume"` StartReserveBalance string `json:"start_reserve_balance"` Capitalization string `json:"capitalization"` Delegated uint64 `json:"delegated"` CreatedAt string `json:"created_at"` Creator string `json:"creator"` Description string `json:"description"` IconURL string `json:"icon_url"` }
func (Resource) Transform ¶
func (Resource) Transform(model resource.ItemInterface, params ...resource.ParamInterface) resource.Interface
Click to show internal directories.
Click to hide internal directories.