Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeJSONRPCHandler ¶
func MakeJSONRPCHandler(funcMap map[string]*utils.APIFunc) http.HandlerFunc
func WriteRPCResponseHTTP ¶
func WriteRPCResponseHTTP(w http.ResponseWriter, headers []httpHeader, res ...types.RPCResponse) error
func WriteRPCResponseHTTPError ¶
func WriteRPCResponseHTTPError( w http.ResponseWriter, httpCode int, res types.RPCResponse, ) error
WriteRPCResponseHTTPError marshals res as JSON (with indent) and writes it to w.
source: https://www.jsonrpc.org/historical/json-rpc-over-http.html
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.