Versions in this module Expand all Collapse all v1 v1.8.2 Feb 15, 2023 Changes in this version + func Params(params ...interface{}) interface + type HTTPClient interface + CloseIdleConnections func() + Do func(*http.Request) (*http.Response, error) + type HTTPError struct + Code int + func NewHTTPError(code int, err error) *HTTPError + func (e *HTTPError) Error() string + type RPCClient interface + Call func(ctx context.Context, method string, params ...interface{}) (*RPCResponse, error) + CallBatch func(ctx context.Context, requests RPCRequests) (RPCResponses, error) + CallBatchRaw func(ctx context.Context, requests RPCRequests) (RPCResponses, error) + CallFor func(ctx context.Context, out interface{}, method string, params ...interface{}) error + CallForInto func(ctx context.Context, out interface{}, method string, params []interface{}) error + CallRaw func(ctx context.Context, request *RPCRequest) (*RPCResponse, error) + CallWithCallback func(ctx context.Context, method string, params []interface{}, ...) error + Close func() error + func NewClient(endpoint string) RPCClient + func NewClientWithOpts(endpoint string, opts *RPCClientOpts) RPCClient + type RPCClientOpts struct + CustomHeaders map[string]string + HTTPClient HTTPClient + type RPCError struct + Code int + Data interface{} + Message string + func (e *RPCError) Error() string + type RPCRequest struct + ID int + JSONRPC string + Method string + Params interface{} + func NewRequest(method string, params ...interface{}) *RPCRequest + type RPCRequests []*RPCRequest + type RPCResponse struct + Error *RPCError + ID int + JSONRPC string + Result stdjson.RawMessage + func (RPCResponse *RPCResponse) GetObject(toType interface{}) error + type RPCResponses []*RPCResponse + func (res RPCResponses) AsMap() map[int]*RPCResponse + func (res RPCResponses) GetByID(id int) *RPCResponse + func (res RPCResponses) HasError() bool