package
3.0.0+incompatible
Repository: https://github.com/nodefactoryio/go-substrate-rpc-client.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
Client retrieves the client from the context, if any.
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.
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.
NewHTTPServer creates a new HTTP RPC server around an API provider.
NewID returns a new, random ID.
NewJSONCodec creates a codec that reads from the given connection.
NewServer creates a new server instance with no registered handlers.
NewWSServer creates a new websocket RPC server around an API provider.
NotifierFromContext returns the Notifier value stored in ctx, if any.
StartHTTPEndpoint starts the HTTP RPC endpoint, configured with cors/vhosts/modules.
StartIPCEndpoint starts an IPC endpoint.
StartWSEndpoint starts a websocket endpoint.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
OptionMethodInvocation is an indication that the codec supports RPC method calls.
support pub sub.
No description provided by the author

# Variables

DefaultHTTPTimeouts represents the default timeout values used if further configuration is not provided.
No description provided by the author
No description provided by the author
ErrNotificationsUnsupported is returned when the connection doesn't support notifications.
ErrNotificationNotFound is returned when the notification for the given id is not found.
No description provided by the author

# Structs

API describes the set of methods offered over the RPC interface.
BatchElem is an element in a batch request.
No description provided by the author
Client represents a connection to an RPC server.
ClientSubscription is a subscription established through the Client's Subscribe or EthSubscribe methods.
HTTPTimeouts represents the configuration params for the HTTP RPC server.
Notifier is tied to a RPC connection that supports subscriptions.
RPCService gives meta information about the server.
Server is an RPC server.
A Subscription is created by a notifier and tight to that notifier.

# Interfaces

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.
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 a RPC session.

# Type aliases

No description provided by the author
CodecOption specifies which type of messages a codec supports.
ID defines a pseudo random number that is used to identify RPC subscriptions.