address

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	DB *pg.DB
}

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

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

Jump to

Keyboard shortcuts

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