Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpHandler ¶
func HttpHandler(rw http.ResponseWriter, req *http.Request)
func RegisterMethod ¶
func RegisterMethod(method string, fn interface{})
func RunHttp ¶
func RunHttp(cfg *HttpConfig)
Types ¶
type HttpConfig ¶
type Request ¶
type Request struct {
Method string `json:"method"`
JsonRPC string `json:"jsonrpc"`
Params *json.RawMessage `json:"params"`
Id *json.RawMessage `json:"id"`
}
type Response ¶
type Response struct {
Id *json.RawMessage `json:"id"`
JsonRPC string `json:"jsonrpc"`
Result interface{} `json:"result"`
Error interface{} `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.