package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Feb 3, 2018
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Client interface {
Close() error
Jobs() chan Job
SubmitShare(*Share)
}
type Error struct {
Code int `json:"code"`
Message string `json:"message"`
}
type Message struct {
Id int `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Params interface{} `json:"params,omitempty"`
Result interface{} `json:"result,omitempty"`
Error *Error `json:"error,omitempty"`
Jsonrpc string `json:"jsonrpc,omitempty"`
}
type Pool struct {
URL string `yaml:"url" json:"url"`
User string `yaml:"user" json:"user"`
Pass string `yaml:"pass" json:"pass"`
Email string `yaml:"email,omitempty" json:"email"`
Protocol Protocol `yaml:"protocol,omitempty" json:"protocol"`
}
var (
ProtocolJsonrpc Protocol = "jsonrpc"
ProtocolNicehash Protocol = "nicehash"
)
type Share struct {
MinerId string `json:"id"`
JobId string `json:"job_id"`
Nonce string `json:"nonce"`
Result string `json:"result"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.