Versions in this module Expand all Collapse all v3 v3.0.1 Oct 11, 2018 v3.0.0 Oct 11, 2018 Changes in this version + const HighestReservedErrorCode + const InternalErrorCode + const InternalErrorMessage + const InvalidParamsCode + const InvalidParamsMessage + const InvalidRequestCode + const InvalidRequestMessage + const LowestReservedErrorCode + const MethodNotFoundCode + const MethodNotFoundMessage + const ParseErrorCode + const ParseErrorMessage + var HTTPRequestHandler = http.HandlerFunc(HTTPRequestHandlerFunc) + var InternalError = newError(InternalErrorCode, InternalErrorMessage, nil) + var InvalidParams = newError(InvalidParamsCode, InvalidParamsMessage, nil) + var InvalidRequest = newError(InvalidRequestCode, InvalidRequestMessage, nil) + var MethodNotFound = newError(MethodNotFoundCode, MethodNotFoundMessage, nil) + var ParseError = newError(ParseErrorCode, ParseErrorMessage, nil) + func HTTPRequestHandlerFunc(w http.ResponseWriter, req *http.Request) + func RegisterMethod(name string, function MethodFunc) error + func RemarshalJSON(dst, src interface{}) error + type BatchRequest []*Request + func (br BatchRequest) String() string + type BatchResponse []*Response + func (br BatchResponse) String() string + type Error struct + Code int + Data interface{} + Message string + type MethodFunc func(params interface{}) *Response + func (method MethodFunc) Call(params interface{}) (res *Response) + type Request struct + ID interface{} + JSONRPC string + Method string + Params interface{} + func NewNotification(method string, params interface{}) *Request + func NewRequest(method string, id, params interface{}) *Request + func (r Request) IsValid() bool + func (r Request) String() string + type Response struct + Error *Error + ID interface{} + JSONRPC string + Result interface{} + func NewErrorResponse(code int, message string, data interface{}) *Response + func NewInvalidParamsErrorResponse(data interface{}) *Response + func NewResponse(result interface{}) *Response + func (r Response) IsValid() bool + func (r Response) String() string Other modules containing this package github.com/AdamSLevy/jsonrpc2 github.com/AdamSLevy/jsonrpc2/v10 github.com/AdamSLevy/jsonrpc2/v11 github.com/AdamSLevy/jsonrpc2/v12 github.com/AdamSLevy/jsonrpc2/v13 github.com/AdamSLevy/jsonrpc2/v14 github.com/AdamSLevy/jsonrpc2/v2 github.com/AdamSLevy/jsonrpc2/v4 github.com/AdamSLevy/jsonrpc2/v5 github.com/AdamSLevy/jsonrpc2/v6 github.com/AdamSLevy/jsonrpc2/v7 github.com/AdamSLevy/jsonrpc2/v8 github.com/AdamSLevy/jsonrpc2/v9