cgminerproxy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandSummary  = "summary"
	CommandRestart  = "restart"
	CommandQuit     = "quit"
	CommandDevs     = "devs"
	CommandChipstat = "chipstat"
)

Usable command

Variables

This section is empty.

Functions

This section is empty.

Types

type CGMinerProxy

type CGMinerProxy struct {
	HostPort string
	Timeout  time.Duration
}

CGMinerProxy is a simple proxy between ASIC

func New

func New(hostname string, port int) *CGMinerProxy

New returns a CGMinerProxy

func (*CGMinerProxy) RunCommand

func (proxy *CGMinerProxy) RunCommand(command, argument string) ([]byte, error)

RunCommand calls RPC command

func (*CGMinerProxy) RunCommandConn

func (proxy *CGMinerProxy) RunCommandConn(conn net.Conn, command, argument string) ([]byte, error)

RunCommandConn calls RPC command on existing net.Conn

Jump to

Keyboard shortcuts

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