Versions in this module Expand all Collapse all v0 v0.2.9 Jun 26, 2024 Changes in this version + type Client struct + func NewClient(endpoint string, opts ...Option) *Client + func (c *Client) Call(request *Request) (*Response, error) + type Error struct + Code int + Data any + Message string + func (e *Error) Error() string + type Notification struct + Method string + Params any + Version string + type Option func(o *Client) + func HttpClient(hc *http.Client) Option + type Request struct + ID any + Method string + Params any + Version string + func NewRequest[T RequestID](method string, params any, id T) *Request + type RequestID interface + type Response struct + Error *Error + ID any + Result any + Version string + func (r *Response) GetAny(v any) error + func (r *Response) GetString() (string, error)