stats

package
v0.0.0-...-14eda81 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryStats

func QueryStats(w http.ResponseWriter, r *http.Request)

QueryStats is a handler which just queries directly from the API for data

Types

type Stats

type Stats struct {
	PoolHashrate        int     `json:"pool_hashrate"`
	RoundHashes         int64   `json:"round_hashes"`
	NetworkHashrate     int64   `json:"network_hashrate"`
	NetworkDifficulty   int64   `json:"network_difficulty"`
	NetworkHeight       int     `json:"network_height"`
	LastTemplateFetched int     `json:"last_template_fetched"`
	LastBlockFound      int     `json:"last_block_found"`
	PoolBlocksFound     int     `json:"pool_blocks_found"`
	PaymentThreshold    float64 `json:"payment_threshold"`
	PoolFee             int     `json:"pool_fee"`
	PoolPort            int     `json:"pool_port"`
	PoolSslPort         int     `json:"pool_ssl_port"`
	AllowSelfSelect     int     `json:"allow_self_select"`
	ConnectedMiners     int     `json:"connected_miners"`
	MinerHashrate       int     `json:"miner_hashrate"`
	MinerHashrateStats  []int   `json:"miner_hashrate_stats"`
	MinerBalance        float64 `json:"miner_balance"`
	WorkerCount         int     `json:"worker_count"`
}

Stats is an autogenerated typed data from the API

Jump to

Keyboard shortcuts

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