coins

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomCoinsStatusData

type CustomCoinsStatusData struct {
	ReserveSum string
	Count      uint
}

type Repository

type Repository struct {
	DB *pg.DB
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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