# Functions
ClientFromContext retrieves the client from the context, if any.
ContextRequestTimeout returns the request timeout derived from the given context.
Dial creates a new client for the given URL.
DialContext creates a new RPC client, just like Dial.
DialHTTP creates a new RPC client that connects to an RPC server over HTTP.
DialHTTPWithClient creates a new RPC client that connects to an RPC server over HTTP using the provided HTTP Client.
DialInProc attaches an in-process connection to the given RPC server.
DialIO creates a client which uses the given IO channels.
DialIPC create a new IPC client that connects to the given endpoint.
DialOptions creates a new RPC client for the given URL.
DialStdIO creates a client on stdin/stdout.
DialWebsocket creates a new RPC client that communicates with a JSON-RPC server that is listening on the given endpoint.
DialWebsocketWithDialer creates a new RPC client using WebSocket.
NewCodec creates a codec on the given connection.
NewContextWithHeaders wraps the given context, adding HTTP headers.
NewFuncCodec creates a codec which uses the given functions to read and write.
NewID returns a new, random ID.
NewServer creates a new server instance with no registered handlers.
NotifierFromContext returns the Notifier value stored in ctx, if any.
PeerInfoFromContext returns information about the client's network connection.
StartIPCEndpoint starts an IPC endpoint.
WithBatchItemLimit changes the maximum number of items allowed in batch requests.
WithBatchResponseSizeLimit changes the maximum number of response bytes that can be generated for batch requests.
WithHeader configures HTTP headers set by the RPC client.
WithHeaders configures HTTP headers set by the RPC client.
WithHTTPAuth configures HTTP request authentication.
WithHTTPClient configures the http.Client used by the RPC client.
WithWebsocketDialer configures the websocket.Dialer used by the RPC client.
WithWebsocketMessageSizeLimit configures the websocket message size limit used by the RPC client.
# Constants
OptionMethodInvocation is an indication that the codec supports RPC method calls.
support pub sub.
# Variables
DefaultHTTPTimeouts represents the default timeout values used if further configuration is not provided.
ErrNotificationsUnsupported is returned by the client when the connection doesn't support notifications.
ErrSubscriptionNotFound is returned when the notification for the given id is not found.
# Structs
API describes the set of methods offered over the RPC interface.
BatchElem is an element in a batch request.
Client represents a connection to an RPC server.
ClientSubscription is a subscription established through the Client's Subscribe or EthSubscribe methods.
HTTPError is returned by client operations when the HTTP status code of the response is not a 2xx status.
HTTPTimeouts represents the configuration params for the HTTP RPC server.
Notifier is tied to an RPC connection that supports subscriptions.
PeerInfo contains information about the remote end of the network connection.
RPCService gives meta information about the server.
Server is an RPC server.
A Subscription is created by a notifier and tied to that notifier.
# Interfaces
ClientOption is a configuration option for the RPC client.
Conn is a subset of the methods of net.Conn which are sufficient for ServerCodec.
ConnRemoteAddr wraps the RemoteAddr operation, which returns a description of the peer address of a connection.
A DataError contains some data in addition to the error message.
Error wraps RPC errors, which contain an error code in addition to the message.
ServerCodec implements reading, parsing and writing RPC messages for the server side of an RPC session.
# Type aliases
CodecOption specifies which type of messages a codec supports.
A HTTPAuth function is called by the client whenever a HTTP request is sent.
ID defines a pseudo random number that is used to identify RPC subscriptions.