Documentation ¶
Index ¶
- type CGMiner
- func (miner *CGMiner) AddPool(url, username, password string) error
- func (miner *CGMiner) Delete(pool *Pool) error
- func (miner *CGMiner) Devs() (*[]Devs, error)
- func (miner *CGMiner) Disable(pool *Pool) error
- func (miner *CGMiner) Enable(pool *Pool) error
- func (miner *CGMiner) Pools() ([]Pool, error)
- func (miner *CGMiner) Quit() error
- func (miner *CGMiner) Restart() error
- func (miner *CGMiner) Summary() (*Summary, error)
- func (miner *CGMiner) SwitchPool(pool *Pool) error
- type Devs
- type Pool
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGMiner ¶
type CGMiner struct {
// contains filtered or unexported fields
}
func New ¶
New returns a CGMiner pointer, which is used to communicate with a running CGMiner instance. Note that New does not attempt to connect to the miner.
func (*CGMiner) AddPool ¶
AddPool adds the given URL/username/password combination to the miner's pool list.
func (*CGMiner) SwitchPool ¶
type Devs ¶
type Devs struct { ID int64 Name string Enabled string Status string Temperature float64 FanSpeed int `json:"Fan Speed"` FanPercent int64 `json:"Fan Percent"` GPUClock int64 `json:"GPU Clock"` MemoryClock int64 `json:"Memory Clock"` GPUVoltage float64 `json:"GPU Voltage"` Powertune int64 KHSav float64 `json:"KHS av"` KHS5s float64 `json:"KHS 5s"` MHSav float64 `json:"MHS av"` MHS5s float64 `json:"MHS 5s"` Accepted int64 Rejected int64 HardwareErrors int64 `json:"Hardware Errors"` Utility float64 Intensity string TotalMH float64 `json:"TotalMH"` Frequency float64 `json:"Frequency"` Diff1Work float64 `json:"Diff1 Work"` DifficultyAccepted float64 `json:"Difficulty Accepted"` DifficultyRejected float64 `json:"Difficulty Rejected"` LastValidWork int64 `json:"Last Valid Work"` DeviceHardware float64 `json:"Device Hardware%"` DeviceRejected float64 `json:"Device Rejected%"` DeviceElapsed int64 `json:"Device Elapsed"` }
type Pool ¶
type Pool struct { Accepted int64 DifficultyAccepted float64 `json:"Difficulty Accepted"` DifficultyRejected float64 `json:"Difficulty Rejected"` DifficultyStale float64 `json:"Difficulty Stale"` Discarded int64 GetFailures int64 `json:"Get Failures"` Getworks int64 HasGBT bool `json:"Has GBT"` HasStratum bool `json:"Has Stratum"` LongPoll string `json:"Long Poll"` Pool int64 `json:"POOL"` PoolRejectedPercentage float64 `json:"Pool Rejected%"` PoolStalePercentage float64 `json:"Pool Stale%"` Priority int64 ProxyType string `json:"Proxy Type"` Proxy string Quota int64 Rejected int64 RemoteFailures int64 `json:"Remote Failures"` Stale int64 Status string StratumActive bool `json:"Stratum Active"` StratumURL string `json:"Stratum URL"` URL string User string Works int64 }
type Summary ¶
type Summary struct { Accepted int64 DeviceHardwarePercent float64 `json:"Device Hardware%"` DeviceRejectedPercent float64 `json:"Device Rejected%"` DifficultyAccepted float64 `json:"Difficulty Accepted"` DifficultyRejected float64 `json:"Difficulty Rejected"` DifficultyStale float64 `json:"Difficulty Stale"` Discarded int64 Elapsed int64 FoundBlocks int64 `json:"Found Blocks"` GetFailures int64 `json:"Get Failures"` Getworks int64 HardwareErrors int64 `json:"Hardware Errors"` LocalWork int64 `json:"Local Work"` KHS5s float64 `json:"KHS 5s"` KHSav float64 `json:"KHS av"` MHS5s float64 `json:"MHS 5s"` MHSav float64 `json:"MHS av"` NetworkBlocks int64 `json:"Network Blocks"` PoolRejectedPercentage float64 `json:"Pool Rejected%"` PoolStalePercentage float64 `json:"Pool Stale%"` Rejected int64 RemoteFailures int64 `json:"Remote Failures"` Stale int64 TotalMH float64 `json:"Total MH"` Utilty float64 WorkUtility float64 `json:"Work Utility"` }
Click to show internal directories.
Click to hide internal directories.