package
0.12.3
Repository: https://github.com/peteim/go-sdk.git
Documentation: pkg.go.dev

# Functions

ClientFromContext Connection retrieves the client from the context, if any.
DialChannelWithClient creates a new RPC client that connects to an RPC server over Channel using the provided Channel Client.
DialContextChannel creates a new Channel client, just like Dial.
DialContextHTTP 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.
NewCodec creates a new RPC server codec with support for JSON-RPC 2.0 based on explicitly given encoding and decoding methods.
NewID returns a new, random ID.
NewJSONCodec creates a new RPC server codec with support for JSON-RPC 2.0.
NotifierFromContext returns the Notifier value stored in ctx, if any.

# Variables

DefaultChannelTimeouts represents the default timeout values used if further configuration is not provided.
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.
ErrSubscriptionNotFound 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.
ChannelTimeouts represents the configuration params for the Channel RPC server.
ClientSubscription is a subscription established through the Connection's Subscribe or EthSubscribe methods.
Connection represents a connection to an RPC server.
HTTPTimeouts represents the configuration params for the HTTP RPC server.
Notifier is tied to a RPC connection that supports subscriptions.
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

ID defines a pseudo random number that is used to identify RPC subscriptions.