client

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)

Functions

This section is empty.

Types

type Client

type Client struct {
	*rpc.Client
}

func New

func New(conn io.ReadWriteCloser) *Client

New creates a new client for a kopach_worker. Note that any kind of connection can be used here, other than the StdConn

func (*Client) NewJob

func (c *Client) NewJob(templates *templates.Message) (e error)

NewJob is a delivery of a new job for the worker, this starts a miner note that since this implements net/rpc by default this is gob encoded

func (*Client) Pause

func (c *Client) Pause() (e error)

Pause tells the worker to stop working, this is for when the controlling node is not current

func (*Client) SendPass

func (c *Client) SendPass(pass []byte) (e error)

SendPass sends the multicast PSK to the workers so they can dispatch their solutions

func (*Client) Stop

func (c *Client) Stop() (e error)

Stop the workers

Jump to

Keyboard shortcuts

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