package
0.0.0-20220129112925-a968a3f5976c
Repository: https://github.com/thinkiumgroup/go-thinkium.git
Documentation: pkg.go.dev
# Functions
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.
IsTemporaryError checks whether the given error should be considered temporary.
NewCodec creates a codec on the given connection.
NewFuncCodec creates a codec which uses the given functions to read and write.
NewServer creates a new server instance with no registered handlers.
RegisterApis checks the given modules' availability, generates an allowlist based on the allowed modules, and then registers all of the APIs exposed by the services.
# Constants
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
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
API describes the set of methods offered over the RPC interface.
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 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 tied 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.
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.
No description provided by the author
No description provided by the author
# Type aliases
ID defines a pseudo random number that is used to identify RPC subscriptions.