utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StratumServer = cli.StringFlag{
		Name:  "server",
		Usage: "stratum server address,(host:port)",
	}

	MinerName = cli.StringFlag{
		Name:  "name",
		Usage: "miner name registered to the stratum server",
		Value: hostname,
	}

	StratumPassword = cli.StringFlag{
		Name:  "password",
		Usage: "stratum protocol password, default: no password",
	}

	Verbosity = cli.IntFlag{
		Name:  "verbosity",
		Usage: "Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail (default: 3)",
		Value: 3,
	}

	CPUs = cli.IntFlag{
		Name:  "cpu",
		Usage: "Sets the maximum number of CPUs that can be executing simultaneously",
		Value: runtime.NumCPU(),
	}

	MinerThreads = cli.IntFlag{
		Name:  "threads",
		Usage: "Number of CPU threads to use for mining",
		Value: runtime.NumCPU(),
	}
)
View Source
var (
	CommandHelpTemplate = `` /* 399-byte string literal not displayed */

)

Functions

func NewApp

func NewApp(gitCommit, usage string) *cli.App

NewApp creates an app with sane defaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

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