Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONRPCErrorCodes = map[int]string{
-32600: `Invalid Request`,
-32700: `Parse error`,
}
JSONRPCErrorCodes holds code to message map
Functions ¶
func JSONRPC ¶
func JSONRPC(ctx *fasthttp.RequestCtx)
Types ¶
type JSONRPCResponse ¶
JSONRPCResponse holds basic response
func JSONRPCDecode ¶
func JSONRPCDecode(v interface{}) *JSONRPCResponse
JSONRPCDecode decoding JSONRPC request from interface
Click to show internal directories.
Click to hide internal directories.