adlistener

package
v0.0.0-...-1f3c2e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL