Versions in this module Expand all Collapse all v0 v0.3.10 Nov 26, 2021 Changes in this version + func HTTPGet(url string, params, headers map[string]string, timeout int) (*http.Response, error) + func HTTPPost(url string, body interface{}, params, headers map[string]string, timeout int) (*http.Response, error) + func HTTPRawPost(url, body string, params, headers map[string]string, timeout int) (*http.Response, error) + func InitHTTPClient() + func RPCGet(result interface{}, url string) error + func RPCGetRequest(result interface{}, url string, params, headers map[string]string, timeout int) error + func RPCGetWithTimeout(result interface{}, url string, timeout int) error + func RPCPost(result interface{}, url, method string, params ...interface{}) error + func RPCPostRequest(url string, req *Request, result interface{}) error + func RPCPostWithTimeout(timeout int, result interface{}, url, method string, params ...interface{}) error + func RPCPostWithTimeoutAndID(result interface{}, timeout, id int, url, method string, params ...interface{}) error + func RPCRawGet(url string) (string, error) + func RPCRawGetRequest(url string, params, headers map[string]string, timeout int) (string, error) + func RPCRawGetWithTimeout(url string, timeout int) (string, error) + func RPCRawPost(url, body string) (string, error) + func RPCRawPostWithTimeout(url, reqBody string, timeout int) (string, error) + type Request struct + ID int + Method string + Params interface{} + Timeout int + func NewRequest(method string, params ...interface{}) *Request + func NewRequestWithTimeoutAndID(timeout, id int, method string, params ...interface{}) *Request + type RequestBody struct + ID int + Method string + Params interface{} + Version string v0.3.9-1 Nov 26, 2021