Documentation
¶
Index ¶
- type GetBlockReply
- type JSONRpcResp
- type RPCClient
- func (r *RPCClient) Check() (bool, error)
- func (r *RPCClient) GetPendingBlock() (GetBlockReply, error)
- func (r *RPCClient) GetWork() ([]string, error)
- func (r *RPCClient) Sick() bool
- func (r *RPCClient) SubmitBlock(params []string) (bool, error)
- func (r *RPCClient) SubmitHashrate(params interface{}) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBlockReply ¶
type JSONRpcResp ¶
type JSONRpcResp struct {
Id *json.RawMessage `json:"id"`
Result *json.RawMessage `json:"result"`
Error map[string]interface{} `json:"error"`
}
type RPCClient ¶
type RPCClient struct {
sync.RWMutex
Url *url.URL
Name string
Pool bool
Accepts uint64
Rejects uint64
LastSubmissionAt int64
FailsCount uint64
// contains filtered or unexported fields
}
func (*RPCClient) GetPendingBlock ¶
func (r *RPCClient) GetPendingBlock() (GetBlockReply, error)
func (*RPCClient) SubmitHashrate ¶
Click to show internal directories.
Click to hide internal directories.