Versions in this module Expand all Collapse all v0 v0.0.1 Jan 16, 2019 Changes in this version + const ModelG28 + const ModelGB + const ModelGP + const ModelGX10 + const ModelN + func Algos(m machine.Model) []string + func NewSSHClient(host string) (*ssh.Client, error) + func NewSSHClientTimeout(host string, timeout time.Duration) (*ssh.Client, error) + type Client struct + func (c *Client) GetStats() (stat MinerStats, err error) + func (c *Client) GetStatsContext(ctx context.Context) (stat MinerStats, err error) + func (c *Client) GetSystemInfo() (info SystemInfo, err error) + func (c *Client) GetSystemInfoContext(ctx context.Context) (info SystemInfo, err error) + func (c *Client) MineStart(ctx context.Context) error + func (c *Client) MineStop(ctx context.Context) error + func (c *Client) MinerSetting(ctx context.Context) (machine.MinerSetting, error) + func (c *Client) Reboot(ctx context.Context) error + func (c *Client) Restart(ctx context.Context) error + func (c *Client) RigInfo(ctx context.Context) (machine.RigInfo, error) + func (c *Client) RigStat(ctx context.Context) (machine.RigStat, error) + func (c *Client) SSHConfig(host string) (string, *ssh.ClientConfig) + func (c *Client) SetMinerSetting(ctx context.Context, setting machine.MinerSetting) error + type MinerOptions []MinerOptionsEntry + type MinerOptionsEntry struct + Key string + Value string + type MinerSetting map[string]string + func (m *MinerSetting) UnmarshalJSON(in []byte) error + func (m MinerSetting) MarshalJSON() ([]byte, error) + type MinerStats struct + Devs []SGDev + Pools []SGPool + Stats []SGStat + Summary SGSummary + System MinerStatsSystem + type MinerStatsSystem struct + TempCPU string + type PoolSetting struct + Algo string + Extranonce string + Pass string + Priority string + URL string + User string + type SGDev struct + ASC int + Accepted int + DeviceElapsed int + DeviceHardware float64 + DeviceRejected float64 + Diff1Work float64 + DifficultyAccepted float64 + DifficultyRejected float64 + Enabled string + HardwareErrors int + ID int + LastShareDifficulty float64 + LastSharePool int + LastShareTime int + LastValidWork int + MHS5S float64 + MHSAv float64 + Name string + NoDevice bool + Rejected int + Status string + Temperature float64 + TotalMH float64 + Utility float64 + type SGDevsResponse struct + Devs []SGDev + type SGPool struct + Accepted int + Algorithm string + AlgorithmType string + BestShare float64 + Description string + Diff1Shares float64 + DifficultyAccepted float64 + DifficultyRejected float64 + DifficultyStale float64 + Discarded int + GetFailures int + Getworks int + HasGBT bool + HasStratum bool + LastShareDifficulty float64 + LastShareTime int + LongPoll string + Name string + POOL int + PoolRejected float64 + PoolStale float64 + Priority int + Profile string + Proxy string + ProxyType string + Quota int + Rejected int + RemoteFailures int + Stale int + Status string + StratumActive bool + StratumURL string + URL string + User string + Works int + type SGPoolsResponse struct + Pools []SGPool + type SGStat struct + Algo string + Calls int + ChipCount int + Clock int + Elapsed int + FWV json.Number + HWV json.Number + ID string + Max float64 + Min float64 + STATS int + USBDelay string + USBPipe string + USBTmo string + Wait float64 + type SGStatsResponse struct + Stats []SGStat + type SGSummary struct + Accepted int + BestShare float64 + DeviceHardware float64 + DeviceRejected float64 + DifficultyAccepted float64 + DifficultyRejected float64 + DifficultyStale float64 + Discarded int + Elapsed int + FoundBlocks int + GetFailures int + Getworks int + HardwareErrors int + KHS5S float64 + KHSAv float64 + LastGetwork int + LocalWork int + MHS5S float64 + MHSAv float64 + NetworkBlocks int + PoolRejected float64 + PoolStale float64 + Rejected int + RemoteFailures int + Stale int + TotalMH float64 + Utility float64 + WorkUtility float64 + type SGSummaryResponse struct + Summary []SGSummary + type SGVersion struct + API string + Miner string + SGMiner string + type SGVersionResponse struct + Version []SGVersion + type SystemInfo struct + APIVersion string + FileSystemVersion string + Hostname string + IPAddr string + KernelVersion string + MACAddr string + MinerDescription string + MinerVersion string + ProductType machine.Model + ProductVersion string + UptimeSeconds string