Documentation
¶
Index ¶
Constants ¶
View Source
const JSONRPC_VERSION = "2.0"
Variables ¶
This section is empty.
Functions ¶
func UnmarshalParams ¶
func UnmarshalParams[T any](data json.RawMessage) (T, error)
Types ¶
type Error ¶
type Handler ¶
func (*Handler) HTTPHandler ¶
func (h *Handler) HTTPHandler(w http.ResponseWriter, r *http.Request)
type Request ¶
type Request struct {
Version string `json:"jsonrpc"`
Method string `json:"method"`
Params json.RawMessage `json:"params,omitempty"`
Id any `json:"id,omitempty"`
}
func UnmarshalRequest ¶
Click to show internal directories.
Click to hide internal directories.