machine

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShortName

func ShortName(macAddr string) string

ShortName : Get short name from macAddr

Types

type DeviceStat

type DeviceStat struct {
	TempPCB        string
	TempChip       string
	Frequency      string
	Chips          int
	HardwareErrors string
	Hashrate       string
}

DeviceStat is a status of each chip

type MinerSetting

type MinerSetting struct {
	Pools   []Pool
	Options map[string]string
}

MinerSetting is a miner setting

type Model

type Model string
const (
	ModelUnknown Model = ""
	ModelEthOS   Model = "ethOS"
)

type Pool

type Pool struct {
	URL  string
	Pass string
	User string
	Algo string

	Options map[string]string
}

Pool common formatted pool

type PoolStat

type PoolStat struct {
	URL  string
	User string
	Algo string

	Status              string
	StratumActive       bool
	Priority            int
	Getworks            string
	Accepted            string
	Rejected            string
	Discarded           string
	Stale               string
	DifficultyAccepted  string
	DifficultyRejected  string
	DifficultyStale     string
	LastShareDifficulty string
	LastShareTime       string
}

PoolStat is a status of pool connection

type RemoteRig

type RemoteRig struct {
	Name     string
	MACAddr  string
	IPAddr   string
	Hostname string
}

RemoteRig is a reference to remote rig

type RigInfo

type RigInfo struct {
	Rig             RemoteRig
	Manufacture     string
	Model           Model
	HardwareVersion string
	FirmwareVersion string
	MinerType       string
	MinerVersion    string
	Algos           []string
	UptimeSeconds   string
}

RigInfo is a detail of Rig

type RigStat

type RigStat struct {
	GHS5s      string
	GHSAvarage string
	MHS5s      string
	MHSAvarage string
	KHS5s      string
	KHSAvarage string

	Accepted       string
	Rejected       string
	HardwareErrors string
	Utility        string

	System SystemStat

	Devices []DeviceStat
	Pools   []PoolStat
}

RigStat is a status of machine

type SystemStat

type SystemStat struct {
	TempCPU string
}

Directories

Path Synopsis
gpu

Jump to

Keyboard shortcuts

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