status

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainBalance

type BlockchainBalance struct {
	MNT  *amount.Amount `json:"mnt"`
	GOLD *amount.Amount `json:"gold"`
}

BlockchainBalance data

type BlockchainState

type BlockchainState struct {
	BlockCount          string            `json:"block_count"`
	LastBlockDigest     string            `json:"last_block_digest"`
	LastBlockMerkleRoot string            `json:"last_block_merkle_root"`
	TransactionCount    string            `json:"transaction_count"`
	NodeCount           string            `json:"node_count"`
	NonEmptyWalletCount string            `json:"non_empty_wallet_count"`
	BlockchainState     string            `json:"blockchain_state"`
	VotingNodes         string            `json:"voting_nodes"`
	Balance             BlockchainBalance `json:"balance"`
}

BlockchainState data

type DailyCoinPrice

type DailyCoinPrice struct {
	MNTPUSD float64 `json:"mntp_usd"`
	GOLDUSD float64 `json:"gold_usd"`
	MNTPBTC float64 `json:"mntp_btc"`
	GOLDBTC float64 `json:"gold_btc"`
}

DailyCoinPrice data

type GetDailyStatsResItem

type GetDailyStatsResItem struct {
	Timestamp    uint64         `json:"timestamp"`
	Transactions uint64         `json:"transactions"`
	FeeMNT       *amount.Amount `json:"fee_mnt"`
	FeeGOLD      *amount.Amount `json:"fee_gold"`
	VolumeMNT    *amount.Amount `json:"volume_mnt"`
	VolumeGOLD   *amount.Amount `json:"volume_gold"`
	TotalStake   *amount.Amount `json:"total_stake"`
	CoinPrice    DailyCoinPrice `json:"coin_price"`
}

GetDailyStatsResItem data

type GetNodesResItem

type GetNodesResItem struct {
	Index   string `json:"index"`
	Address string `json:"address"`
}

GetNodesResItem data

type GetRes

type GetRes struct {
	BlockchainState BlockchainState `json:"blockchain_state"`
}

GetRes data

type Service

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

Service is a status service

func New

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

New instance

func (*Service) DailyStats

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

DailyStats ...

func (*Service) Nodes

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

Nodes ...

func (*Service) Status

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

Status ...

Jump to

Keyboard shortcuts

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