Documentation
¶
Index ¶
- func DiscoverByIPScan(ctx context.Context, networks []string, portBegin int, portEnd int) ([]machine.RemoteRig, error)
- func DiscoverByMCast(ctx context.Context, mcastCode string, mcastAddr string, mcastListenPort int, ...) error
- type Client
- type Connector
- type Controller
- type InfoReader
- type SettingReader
- type SettingWriter
- type StatReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { Connector Controller InfoReader StatReader SettingReader SettingWriter Setup(context.Context) error }
Client interface
type Connector ¶
type Connector interface { SSHConfig(host string) (string, *ssh.ClientConfig) SetSSH(ssh *ssh.Client) Close() error }
Connector handles *ssh.Client
type Controller ¶
type Controller interface { MineStop(context.Context) error MineStart(context.Context) error Restart(context.Context) error Reboot(context.Context) error }
Controller controlls ASIC
type InfoReader ¶
InfoReader : ASIC basic info
type SettingReader ¶
type SettingReader interface {
MinerSetting(context.Context) (machine.MinerSetting, error)
}
SettingReader : get setting
type SettingWriter ¶
type SettingWriter interface {
SetMinerSetting(context.Context, machine.MinerSetting) error
}
SettingWriter updates setting
Click to show internal directories.
Click to hide internal directories.