Documentation ¶
Overview ¶
Package upstream - maintain REQ/REP connection to clients this allow for push of blocks, transactions... as well as polling for out of sync conditions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upstream ¶
type Upstream interface { ActiveInThePast(time.Duration) bool CachedRemoteDigestOfLocalHeight() blockdigest.Digest CachedRemoteHeight() uint64 Connect(*util.Connection, []byte) error ConnectedTo() *zmqutil.Connected Destroy() GetBlockData(uint64) ([]byte, error) IsConnectedTo([]byte) bool IsConnected() bool LocalHeight() uint64 Name() string RemoteAddr() (string, error) RemoteDigestOfHeight(uint64) (blockdigest.Digest, error) RemoteHeight() (uint64, error) ResetServer() ServerPublicKey() []byte }
Upstream - upstream connection
Click to show internal directories.
Click to hide internal directories.