# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DefaultErrorEncoder writes the error to the ResponseWriter, as a json-rpc error response, with an InternalError status code.
No description provided by the author
No description provided by the author
ErrorMessage returns a message for the JSON RPC error code.
No description provided by the author
NewServer constructs a new server, which implements http.Server.
No description provided by the author
ServerAfter functions are executed on the HTTP response writer after the endpoint is invoked, but before anything is written to the client.
ServerBefore functions are executed on the HTTP request object before the request is decoded.
ServerErrorEncoder is used to encode errors to the http.ResponseWriter whenever they're encountered in the processing of a request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
ContentType defines the content type to be served.
InternalError defines a server error.
InvalidParamsError defines invalid method parameter(s).
InvalidRequestError defines the JSON sent is not a valid Request object.
MethodNotFoundError defines the method does not exist / is not available.
ParseError defines invalid JSON was received by the server.
Version defines the version of the JSON RPC implementation.
# Structs
No description provided by the author
EndpointCodec defines a server Endpoint and its associated codecs.
Error defines a JSON RPC error that can be returned in a Response from the spec http://www.jsonrpc.org/specification#error_object.
Request defines a JSON RPC request from the spec http://www.jsonrpc.org/specification#request_object.
RequestID defines a request ID that can be string, number, or null.
Response defines a JSON RPC response from the spec http://www.jsonrpc.org/specification#response_object.
No description provided by the author
Server wraps an endpoint and implements http.Handler.
# Interfaces
ErrorCoder is checked by DefaultErrorEncoder.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
DecodeRequestFunc extracts a user-domain request object from raw JSON It's designed to be used in JSON RPC servers, for server-side endpoints.
No description provided by the author
DecodeResponseFunc extracts a user-domain response object from an JSON RPC response object.
EncodeRequestFunc encodes the given request object to raw JSON.
EncodeResponseFunc encodes the passed response object to a JSON RPC result.
EndpointCodecMap maps the Request.Method to the proper EndpointCodec.
ServerOption sets an optional parameter for servers.