client

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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(job *job.Container) (err error)

NewJob is a delivery of a new job for the worker, this starts a miner

func (*Client) Pause

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

func (*Client) SendPass

func (c *Client) SendPass(pass string) (err error)

func (*Client) Stop

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

Jump to

Keyboard shortcuts

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