block

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,omitempty"`
}

GetListRes data

type GetRes

type GetRes struct {
	ID            string         `json:"id"`
	PrevDigest    string         `json:"prev_digest"`
	MerkleRoot    string         `json:"merkle_root"`
	Transactions  uint           `json:"transactions"`
	Signers       uint           `json:"signers"`
	Orchestrator  string         `json:"orchestrator"`
	TotalMNT      *amount.Amount `json:"total_mnt"`
	TotalGOLD     *amount.Amount `json:"total_gold"`
	FeeMNT        *amount.Amount `json:"fee_mnt"`
	FeeGOLD       *amount.Amount `json:"fee_gold"`
	TotalUserData uint64         `json:"total_user_data"`
	Timestamp     uint64         `json:"timestamp"`
}

GetRes data

type Service

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

Service is a block service

func New

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

New instance

func (*Service) GetByID

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

GetByID ...

func (*Service) List

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

List ...

Jump to

Keyboard shortcuts

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