subscriber

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(
	ctx context.Context,
	wg *sync.WaitGroup,
	varSubscriber pdvariable.Subscriber,
	topoSubscriber topology.Subscriber,
	cfgSubscriber config.Subscriber,
	subscribeController SubscribeController,
) *Manager

func (*Manager) Run

func (m *Manager) Run()

type Scraper

type Scraper interface {
	Run()
	IsDown() bool
	Close()
}

type ScraperFactory

type ScraperFactory interface {
	NewScraper(ctx context.Context, component topology.Component) Scraper
}

type SubscribeController

type SubscribeController interface {
	ScraperFactory

	Name() string
	IsEnabled() bool
	UpdatePDVariable(pdvariable.PDVariable)
	UpdateConfig(config.Config)
	UpdateTopology([]topology.Component)
}

type Subscriber

type Subscriber struct {
	// contains filtered or unexported fields
}

func NewSubscriber

func NewSubscriber(
	topoSubscriber topology.Subscriber,
	varSubscriber pdvariable.Subscriber,
	cfgSubscriber config.Subscriber,
	subscribeController SubscribeController,
) *Subscriber

func (*Subscriber) Close

func (s *Subscriber) Close()

Jump to

Keyboard shortcuts

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