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
func (*HTTP) SetMaxConnsPerHost ¶
SetMaxConnsPerHost sets the maximum number of connections that can be established with a host
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
// SetMaxConnsPerHost sets the maximum number of connections that can be established with a host
SetMaxConnsPerHost(count int)
// Close closes the transport connection if necessary
Close() error
}
Transport is an inteface for transport methods to send jsonrpc requests
Click to show internal directories.
Click to hide internal directories.