Documentation ¶
Index ¶
Constants ¶
View Source
const ProtocolVersion = "2.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a JSON-RPC client
type Request ¶
type Request struct { JSONRPC string `json:"jsonrpc"` ID any `json:"id,omitempty"` Method string `json:"method"` Params json.RawMessage `json:"params,omitempty"` }
func NewRequest ¶
func NewRequest(id any, method string, params json.RawMessage) Request
Click to show internal directories.
Click to hide internal directories.