Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = fmt.Errorf("timeout")
ErrTimeout happens when the websocket requests times out
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP is an http transport
type PubSubTransport ¶
type PubSubTransport interface { // Subscribe starts a subscription to a new event Subscribe(method string, callback func(b []byte)) (func() error, error) }
PubSubTransport is a transport that allows subscriptions
type Transport ¶
type Transport interface { // Call makes a jsonrpc request Call(method string, out interface{}, params ...interface{}) error // Close closes the transport connection if necessary Close() error }
Transport is an inteface for transport methods to send jsonrpc requests
func NewTransport ¶
NewTransport creates a new transport object
Click to show internal directories.
Click to hide internal directories.