Documentation ¶
Index ¶
- Variables
- func BuildCommandArgs(miner *Miner) ([]string, error)
- func MinerFactory() miner.MinerFactory
- func RegisterCommandBuilder(builder CommandBuilder)
- type CommandBuilder
- type Config
- type Miner
- func (m *Miner) Algorithms() []miner.Algorithm
- func (m *Miner) Available() bool
- func (m *Miner) Close(ctx context.Context) error
- func (m *Miner) Init(ctx context.Context, c config.Config) error
- func (m *Miner) Name() string
- func (m *Miner) Select(query *miner.DeviceQuery, target interface{}) (miner.Device, error)
- func (m *Miner) Start(ctx context.Context) error
- func (m *Miner) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCommandBufferFull = errors.New("command buffer is full")
)
Functions ¶
func BuildCommandArgs ¶
func MinerFactory ¶
func MinerFactory() miner.MinerFactory
func RegisterCommandBuilder ¶
func RegisterCommandBuilder(builder CommandBuilder)
Types ¶
Click to show internal directories.
Click to hide internal directories.