pocminer

package
v0.0.0-...-163fc3c Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMinerType = errors.New("invalid Miner type")
	ErrInvalidMinerArgs = errors.New("invalid Miner args")
	ErrUnimplemented    = errors.New("unimplemented Miner interface")
)
View Source
var (
	BackendList []Backend
)

Functions

func AddPoCMinerBackend

func AddPoCMinerBackend(ins Backend)

Types

type Backend

type Backend struct {
	Typ         string
	NewPoCMiner func(args ...interface{}) (PoCMiner, error)
}

type PoCMiner

type PoCMiner interface {
	Start() error
	Stop() error
	Started() bool
	Type() string
	SetPayoutAddresses(addresses []chainutil.Address) error
}

func NewPoCMiner

func NewPoCMiner(kbType string, args ...interface{}) (PoCMiner, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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