Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeadBroadcaster ¶
type HeadBroadcaster interface { service.Service HeadTrackable Subscribe(callback HeadTrackable) (currentLongestChain *eth.Head, unsubscribe func()) }
HeadBroadcaster is the external interface of headBroadcaster
type HeadBroadcasterRegistry ¶
type HeadBroadcasterRegistry interface {
Subscribe(callback HeadTrackable) (currentLongestChain *eth.Head, unsubscribe func())
}
type HeadTrackable ¶
HeadTrackable represents any object that wishes to respond to ethereum events, after being subscribed to HeadBroadcaster
type SubscribeFunc ¶ added in v1.10.17
type SubscribeFunc func(callback HeadTrackable) (unsubscribe func())
Click to show internal directories.
Click to hide internal directories.