Documentation
¶
Overview ¶
Package poller provides the core Poller struct.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AddressManager dax.AddressManager
NodeService dax.NodeService
NodePoller NodePoller
PollInterval time.Duration
Logger logger.Logger
}
type HTTPNodePoller ¶
type HTTPNodePoller struct {
// contains filtered or unexported fields
}
HTTPNodePoller is an http implementation of the NodePoller interface.
func NewHTTPNodePoller ¶
func NewHTTPNodePoller(logger logger.Logger) *HTTPNodePoller
type NodePoller ¶
NodePoller is an interface to anything which has the ability to poll a node.
type NopNodePoller ¶
type NopNodePoller struct{}
NopNodePoller is a no-op implementation of the NodePoller interface.
func NewNopNodePoller ¶
func NewNopNodePoller() *NopNodePoller
Click to show internal directories.
Click to hide internal directories.