Versions in this module Expand all Collapse all v1 v1.1.0 Jan 10, 2019 Changes in this version + var SupportedMiners = []string + func DetermineMinerType(dir string) (string, string, error) + func HumanizeHashrate(hashrate float64) string + func HumanizeTime(seconds int) string + type Base struct — darwin/amd64, linux/amd64, windows/amd64 + func (b *Base) Start() error + func (b *Base) Stop() error + type Config struct + Endpoint string + Path string + Type string + type Miner interface + GetLastHashrate func() float64 + GetName func() string + GetProcessingConfig func() ProcessingConfig + GetStats func() (Stats, error) + Start func() error + Stop func() error + WriteConfig func(poolEndpoint string, walletAddress string, processingConfig ProcessingConfig) error + func CreateMiner(config Config) (Miner, error) + type ProcessingConfig struct + MaxThreads uint16 + MaxUsage uint8 + Threads uint16 + Type string + type Stats struct + Address string + CurrentDifficulty int + Errors []string + Hashrate float64 + HashrateHuman string + SharesBad int + SharesGood int + UpdateGraph bool + Uptime int + UptimeHuman string + type XmrStak struct + func NewXmrStak(config Config) (*XmrStak, error) + func (miner *XmrStak) GetLastHashrate() float64 + func (miner *XmrStak) GetName() string + func (miner *XmrStak) GetProcessingConfig() ProcessingConfig + func (miner *XmrStak) GetStats() (Stats, error) + func (miner *XmrStak) WriteConfig(poolEndpoint string, walletAddress string, processingConfig ProcessingConfig) error + type XmrStakResponse struct + Connection struct{ ... } + Hashrate struct{ ... } + Results struct{ ... } + Version string + type Xmrig struct + func NewXmrig(config Config) (*Xmrig, error) + func (miner *Xmrig) GetLastHashrate() float64 + func (miner *Xmrig) GetName() string + func (miner *Xmrig) GetProcessingConfig() ProcessingConfig + func (miner *Xmrig) GetStats() (Stats, error) + func (miner *Xmrig) WriteConfig(poolEndpoint string, walletAddress string, processingConfig ProcessingConfig) error + type XmrigAPIConfig struct + AccessToken interface{} + Port int + WorkerID interface{} + type XmrigConfig struct + API XmrigAPIConfig + Algo string + Av int + Background bool + CPUAffinity interface{} + CPUPriority interface{} + Colors bool + DonateLevel int + LogFile interface{} + MaxCPUUsage uint8 + Pools []XmrigPoolConfig + PrintTime int + Retries int + RetryPause int + Safe bool + Syslog bool + Threads uint16 + type XmrigGPUConfig struct + API XmrigAPIConfig + Algo string + Av int + Background bool + CPUAffinity interface{} + CPUPriority interface{} + Colors bool + DonateLevel int + LogFile interface{} + MaxCPUUsage uint8 + Pools []XmrigPoolConfig + PrintTime int + Retries int + RetryPause int + Safe bool + Syslog bool + Threads []struct{} + type XmrigPoolConfig struct + Keepalive bool + Nicehash bool + Pass string + URL string + User string + Variant string + type XmrigResponse struct + Algo string + CPU struct{ ... } + Connection struct{ ... } + DonateLevel int + Hashrate struct{ ... } + Hugepages bool + ID string + Kind string + Results struct{ ... } + Ua string + Version string + WorkerID string