Versions in this module Expand all Collapse all v2 v2.1.2 Apr 5, 2018 v2.1.1 Apr 5, 2018 Changes in this version + func Params(params ...interface{}) interface + type HTTPError struct + Code int + func (e *HTTPError) Error() string type RPCClient + CallBatch func(requests RPCRequests) (RPCResponses, error) + CallBatchRaw func(requests RPCRequests) (RPCResponses, error) + CallRaw func(request *RPCRequest) (*RPCResponse, error) type RPCRequest + func NewRequest(method string, params ...interface{}) *RPCRequest + type RPCRequests []*RPCRequest + type RPCResponses []*RPCResponse + func (res RPCResponses) AsMap() map[int]*RPCResponse + func (res RPCResponses) GetByID(id int) *RPCResponse + func (res RPCResponses) HasError() bool v2.0.1 Mar 31, 2018 Changes in this version type RPCClientOpts + HTTPClient *http.Client v2.0.0 Mar 31, 2018 Changes in this version + type RPCClient interface + Call func(method string, params ...interface{}) (*RPCResponse, error) + CallFor func(out interface{}, method string, params ...interface{}) error + func NewClient(endpoint string) RPCClient + func NewClientWithOpts(endpoint string, opts *RPCClientOpts) RPCClient + type RPCClientOpts struct + CustomHeaders map[string]string + HttpClient *http.Client + type RPCError struct + Code int + Data interface{} + Message string + func (e *RPCError) Error() string + type RPCRequest struct + ID uint + JSONRPC string + Method string + Params interface{} + type RPCResponse struct + Error *RPCError + ID uint + JSONRPC string + Result interface{} + func (RPCResponse *RPCResponse) GetBool() (bool, error) + func (RPCResponse *RPCResponse) GetFloat() (float64, error) + func (RPCResponse *RPCResponse) GetInt() (int64, error) + func (RPCResponse *RPCResponse) GetObject(toType interface{}) error + func (RPCResponse *RPCResponse) GetString() (string, error) Other modules containing this package gopkg.in/ybbus/jsonrpc.v1