Documentation
Overview ¶
Package jrpc implements JSON-RPC 2.0 for labstack echo server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorInvalidParams ¶
func NewErrorInvalidParams(data interface{}) error
NewErrorInvalidParams - helper func for create instance of Invalid params error
Types ¶
type Error ¶
type Error interface {
Error() string
}
Error - json-rpc error interface
func HandleMethod ¶
func HandleMethod(ec echo.Context, method HandlerFunc, params json.RawMessage) (json.RawMessage, Error)
HandleMethod run jrpc handler