Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADListener ¶
type ADListener struct {
// contains filtered or unexported fields
}
ADListener implements comp/core/autodiscovery/scheduler.Scheduler.
It proxies Schedule and Unschedule calls to its parent.
This must be a distinct type from schedulers, since both types implement interfaces with different Stop methods.
func NewADListener ¶
func NewADListener(name string, ac autodiscovery.Component, schedule, unschedule func([]integration.Config)) *ADListener
NewADListener creates a new ADListener, proxying schedule and unschedule calls to the given functions.
func (*ADListener) Schedule ¶
func (l *ADListener) Schedule(configs []integration.Config)
Schedule implements comp/core/autodiscovery/scheduler.Scheduler#Schedule.
func (*ADListener) StartListener ¶
func (l *ADListener) StartListener()
StartListener starts the ADListener, subscribing to the feed of integration.Configs and additionally gathering any currently-scheduled configs.
func (*ADListener) Stop ¶
func (l *ADListener) Stop()
Stop implements comp/core/autodiscovery/scheduler.Scheduler#Stop.
func (*ADListener) StopListener ¶
func (l *ADListener) StopListener()
StopListener stops the ADListener
func (*ADListener) Unschedule ¶
func (l *ADListener) Unschedule(configs []integration.Config)
Unschedule implements comp/core/autodiscovery/scheduler.Scheduler#Unschedule.