Versions in this module Expand all Collapse all v0 v0.0.2 Dec 30, 2023 Changes in this version + func Params(params ...interface{}) interface + type HTTPClient interface + CloseIdleConnections func() + Do func(*fasthttp.Request, *fasthttp.Response) error + type HTTPError struct + Code int + func NewHTTPError(code int, err error) *HTTPError + func (e *HTTPError) Error() string + type RPCClient interface + Call func(method string, params ...interface{}) (*RPCResponse, error) + CallBatch func(requests RPCRequests) (RPCResponses, error) + CallBatchRaw func(requests RPCRequests) (RPCResponses, error) + CallFor func(out interface{}, method string, params ...interface{}) error + CallForInto func(out interface{}, method string, params []interface{}) error + CallRaw func(request *RPCRequest) (*RPCResponse, error) + CallWithCallback func(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