reward

package
v0.0.0-...-ffb6f1e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetListRes

type GetListRes struct {
	List []*GetRes `json:"list"`
}

GetListRes data

type GetRes

type GetRes struct {
	ID              uint64         `json:"id"`
	BlockFrom       string         `json:"block_from"`
	BlockTo         string         `json:"block_to"`
	Transactions    string         `json:"transactions"`
	TransferredGOLD *amount.Amount `json:"transferred_gold"`
	TransferredMNT  *amount.Amount `json:"transferred_mnt"`
	RewardMNT       *amount.Amount `json:"reward_mnt"`
	RewardGOLD      *amount.Amount `json:"reward_gold"`
	Time            uint64         `json:"time"`
}

GetRes data

type GetTxListRes

type GetTxListRes struct {
	List []*GetTxRes `json:"list"`
}

GetTxListRes data

type GetTxRes

type GetTxRes struct {
	NodeAddress    string         `json:"node_address"`
	NodeName       string         `json:"node_name"`
	NodeBalanceMNT *amount.Amount `json:"node_balance_mnt"`
	TxNonce        uint64         `json:"tx_nonce"`
	TxDigest       string         `json:"tx_digest"`
	TxToken        string         `json:"tx_token"`
	TxAmount       *amount.Amount `json:"tx_amount"`
	Time           uint64         `json:"time"`
}

GetTxRes data

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a reward service

func New

func New(reader dao.IDAO, latency mtx.Histogram) *Service

New instance

func (*Service) List

func (s *Service) List(w http.ResponseWriter, r *http.Request)

List ...

func (*Service) ListByID

func (s *Service) ListByID(w http.ResponseWriter, r *http.Request)

ListByID ...

Jump to

Keyboard shortcuts

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