Versions in this module Expand all Collapse all v0 v0.0.14 Nov 14, 2024 v0.0.13 Nov 11, 2024 v0.0.12 May 13, 2024 v0.0.11 Nov 20, 2023 v0.0.10 Nov 19, 2023 v0.0.9 May 11, 2023 v0.0.8 Feb 10, 2023 v0.0.7 Feb 10, 2023 v0.0.6 Dec 13, 2022 v0.0.5 Dec 13, 2022 v0.0.4 Dec 13, 2022 v0.0.3 Dec 13, 2022 v0.0.2 Dec 11, 2022 v0.0.1 Dec 11, 2022 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