config

package
v1.9.55 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: GPL-3.0, GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceInfo

type DeviceInfo struct {
	Lock           sync.Mutex
	DeviceId       uint32
	Start_time     int64
	Use_time       int64
	Solution_count int64
	Hash_rate      float32
	Gps            int64
}

func (DeviceInfo) New

func (deviceInfo DeviceInfo) New(_lock sync.Mutex, _deviceId uint32, _start_time int64, _use_time int64, _solution_count int64, _hash_rate float32, _gps int64) DeviceInfo

type Param

type Param struct {
	Server       string
	Account      string
	VerboseLevel uint
	Algorithm    int
	Threads      int
	Cpu          bool
	Cuda         bool
	Opencl       bool
}

func (Param) New

func (param Param) New(server string, account string, verboseLevel uint, algorithm int, threads int, cpu bool, cuda bool, opencl bool) Param

type StreamData

type StreamData struct {
	Nedges     uint32
	ThreadId   uint32
	Difficulty string
	Nonce      uint64
	Header     []byte
}

func (StreamData) New

func (streamData StreamData) New(nedges uint32, threadId uint32, Difficulty string, nonce uint64, header []byte) StreamData

type Task

type Task struct {
	Header     string
	Nonce      string
	Solution   string
	Difficulty string
}

type TaskWrapper

type TaskWrapper struct {
	Lock  sync.Mutex
	TaskQ Task
}
var CurrentTask TaskWrapper

global task variable, need sync accessed

Jump to

Keyboard shortcuts

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