Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHashrate ¶
Types ¶
type GlobalStat ¶
type NompClient ¶
type NompClient struct {
// contains filtered or unexported fields
}
func NewNompClient ¶
func NewNompClient(client *http.Client, BaseURL string, UserAgent string) *NompClient
func (*NompClient) GetPoolStatus ¶
func (client *NompClient) GetPoolStatus() (Status, error)
func (NompClient) SetDebug ¶
func (client NompClient) SetDebug(debug bool)
type Pool ¶
type Pool struct {
Name string `json:"name"`
Symbol string `json:"symbol"`
Algorithm string `json:"algorithm"`
Stat Stat `json:"poolStats"`
Blocks Blocks `json:"blocks"`
Workers Workers `json:"workers"`
Hashrate float64 `json:"hashrate"`
WorkerCount uint16 `json:"workerCount"`
HashrateStr string `json:"hashrateString"`
}
func (*Pool) UnmarshalJSON ¶
type Stat ¶
func (*Stat) UnmarshalJSON ¶
type Status ¶
type Status struct {
Time uint64 `json:"time"`
Global GlobalStat `json:"global"`
Algos Algos `json:"algos"`
Pools Pools `json:"pools"`
}
type Worker ¶
type Worker struct {
Hashrate float64 `json:"hashrateString"`
}
func (*Worker) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.