mining

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyBuffer

func CreateEmptyBuffer(ctx *cl.Context, flags cl.MemFlag, size int) (buffer *cl.MemObject)

CreateEmptyBuffer calls CreateEmptyBuffer on the supplied context and logs and panics if an error occurred

func NewHashRateSocketSink added in v0.1.1

func NewHashRateSocketSink(endpoint string, sendFrequency int) *hashRateSocketSink

func NewHashRateStdOutSink added in v0.1.1

func NewHashRateStdOutSink() *hashRateStdOutSink

Types

type CurrentHashRate added in v0.1.2

type CurrentHashRate struct {
	Timestamp int64   `json:"timestamp"`
	HashRate  float64 `json:"hashrate"`
}

type HashRateReport

type HashRateReport struct {
	MinerID  int
	HashRate float64
}

HashRateReport is sent from the mining routines for giving combined information as output

type HashRateSink added in v0.1.1

type HashRateSink interface {
	SetCurrentHashRates(map[int]float64) error
}

type Miner

type Miner interface {
	Mine()
}

Miner declares the common 'Mine' method

Jump to

Keyboard shortcuts

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