# Functions
No description provided by the author
Dial uses the dialer to make a new connection, wraps the returned reader and writer using the framer to make a stream, and then builds a connection on top of that stream using the binder.
No description provided by the author
HeaderFramer returns a new Framer.
Int64ID creates a new integer request identifier.
NetDialer returns a Dialer using the supplied standard network dialer.
NetListener returns a new Listener that listents on a socket using the net package.
NetPipeListener returns a new Listener that listens using net.Pipe.
NewCall constructs a new Call message for the supplied ID, method and parameters.
NewError returns an error that will encode on the wire correctly.
NewIdleListener wraps a listener with an idle timeout.
NewNotification constructs a new Notification message for the supplied method and parameters.
NewResponse constructs a new Response message that is a reply to the supplied.
RawFramer returns a new Framer.
Serve starts a new server listening for incoming connections and returns it.
StringID creates a new string request identifier.
# Variables
ErrAsyncResponse is returned from a handler to indicate it will generate a response asynchronously.
ErrIdleTimeout is returned when serving timed out waiting for new connections.
ErrInternal indicates a failure to process a call correctly.
ErrInvalidParams should be returned by the handler when method parameter(s) were invalid.
ErrInvalidRequest is used when the JSON sent is not a valid Request object.
ErrMethodNotFound should be returned by the handler when the method does not exist / is not available.
ErrNotHandled is returned from a handler to indicate it did not handle the message.
ErrParse is used when invalid JSON was received by the server.
ErrServerOverloaded is returned when a message was refused due to a server being temporarily unable to accept any new messages.
ErrUnknown should be used for all non coded errors.
# Structs
No description provided by the author
Connection manages the jsonrpc2 protocol, connecting responses back to their calls.
ConnectionOptions holds the options for new connections.
ID is a Request identifier.
NetListenOptions is the optional arguments to the NetListen function.
Request is a Message sent to a peer to request behavior.
Response is a Message used as a reply to a call Request.
Server is a running server that is accepting incoming connections.
# Interfaces
Binder builds a connection configuration.
Dialer is used by clients to dial a server.
Framer wraps low level byte readers and writers into jsonrpc2 message readers and writers.
Handler handles messages on a connection.
Listener is implemented by protocols to accept new inbound connections.
Message is the interface to all jsonrpc2 message types.
Preempter handles messages on a connection before they are queued to the main handler.
Reader abstracts the transport mechanics from the JSON RPC protocol.
Writer abstracts the transport mechanics from the JSON RPC protocol.
# Type aliases
No description provided by the author