Versions in this module Expand all Collapse all v1 v1.1.1 Sep 27, 2021 v1.1.0 Sep 27, 2021 Changes in this version + type HTTPClient struct + Debug bool + var Client *HTTPClient + func NewHTTPClient() *HTTPClient + func NewHTTPTLSClient() *HTTPClient + func (c *HTTPClient) Get(endpoint string, vs ...interface{}) ([]byte, error) + func (c *HTTPClient) MakeGetURL(endpoint string, args map[string]string) string + func (c *HTTPClient) MakeRequest(ctx context.Context, method, endpoint string, data io.Reader, vs []interface{}) (*http.Request, error) + func (c *HTTPClient) Post(endpoint string, data io.Reader, vs ...interface{}) ([]byte, error) + func (c *HTTPClient) SetTimeout(t time.Duration) + type JSONRPCClient struct + Debug bool + func NewJSONRPCClient() *JSONRPCClient + func (c *JSONRPCClient) Post(endpoint string, request *Request, username, password string) ([]byte, error) + func (c *JSONRPCClient) SetTimeout(t time.Duration) + type Request struct + ID interface{} + JSONRPC string + Method string + Params []json.RawMessage + func NewRequest(id interface{}, method string, params []interface{}) (*Request, error)