teamredminer

package
v0.0.0-...-26e86c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCommandBufferFull = errors.New("command buffer is full")
)

Functions

func BuildCommandArgs

func BuildCommandArgs(miner *Miner) ([]string, error)

func MinerFactory

func MinerFactory() miner.MinerFactory

func RegisterCommandBuilder

func RegisterCommandBuilder(builder CommandBuilder)

Types

type CommandBuilder

type CommandBuilder func(miner *Miner, args []string) ([]string, error)

type Config

type Config struct {
}

type Miner

type Miner struct {
	// contains filtered or unexported fields
}

func New

func New(settings *miner.Settings) *Miner

func (*Miner) Algorithms

func (m *Miner) Algorithms() []miner.Algorithm

func (*Miner) Available

func (m *Miner) Available() bool

func (*Miner) Close

func (m *Miner) Close(ctx context.Context) error

func (*Miner) Init

func (m *Miner) Init(ctx context.Context, c config.Config) error

func (*Miner) Name

func (m *Miner) Name() string

func (*Miner) Select

func (m *Miner) Select(query *miner.DeviceQuery, target interface{}) (miner.Device, error)

func (*Miner) Start

func (m *Miner) Start(ctx context.Context) error

func (*Miner) Stop

func (m *Miner) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL