Documentation ¶
Index ¶
- type GetBlockTemplateReply
- type GetInfoReply
- type JSONRpcResp
- type RPCClient
- func (r *RPCClient) Check(reserveSize int, address string) (bool, error)
- func (r *RPCClient) GetBlockTemplate(reserveSize int, address string) (*GetBlockTemplateReply, error)
- func (r *RPCClient) GetInfo() (*GetInfoReply, error)
- func (r *RPCClient) Info() *GetInfoReply
- func (r *RPCClient) Sick() bool
- func (r *RPCClient) SubmitBlock(hash string) (*JSONRpcResp, error)
- func (r *RPCClient) UpdateInfo() (*GetInfoReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBlockTemplateReply ¶
type GetInfoReply ¶
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 Accepts int64 Rejects int64 LastSubmissionAt int64 FailsCount int64 Url *url.URL Name string // contains filtered or unexported fields }
func (*RPCClient) GetBlockTemplate ¶
func (r *RPCClient) GetBlockTemplate(reserveSize int, address string) (*GetBlockTemplateReply, error)
func (*RPCClient) GetInfo ¶
func (r *RPCClient) GetInfo() (*GetInfoReply, error)
func (*RPCClient) Info ¶
func (r *RPCClient) Info() *GetInfoReply
func (*RPCClient) SubmitBlock ¶
func (r *RPCClient) SubmitBlock(hash string) (*JSONRpcResp, error)
func (*RPCClient) UpdateInfo ¶
func (r *RPCClient) UpdateInfo() (*GetInfoReply, error)
Click to show internal directories.
Click to hide internal directories.