# 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 listens 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.
NewServer starts a new server listening for incoming connections and returns it.
RawFramer returns a new Framer.
StringID creates a new string request identifier.
# Variables
ErrAsyncResponse is returned from a handler to indicate it will generate a response asynchronously.
ErrClientClosing is a dummy error returned for calls initiated while the client is closing.
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 or Preempter to indicate it did not handle the request.
ErrParse is used when invalid JSON was received by the server.
ErrServerClosing is returned for calls that arrive while the server is closing.
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.
WireError represents a structured error in a Response.
# 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
A BinderFunc implements the Binder interface for a standalone Bind function.
A HandlerFunc implements the Handler interface for a standalone Handle function.
A PreempterFunc implements the Preempter interface for a standalone Preempt function.