initializer

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInitializer

func NewInitializer(jm *manager.JobManager, maxWorkers int64) *watcherInitializer

NewInitializer creates and returns a new watcherInitializer instance.

Types

type WantsJobManager

type WantsJobManager interface {
	registry.Watcher
	SetJobManager(jm *manager.JobManager)
}

WantsJobManager defines a function which sets job manager for watcher plugins that need it.

type WantsMaxWorkers

type WantsMaxWorkers interface {
	registry.Watcher
	SetMaxWorkers(maxWorkers int64)
}

WantsMaxWorkers defines a function which sets max workers for watcher plugins that need it.

type WatcherInitializer

type WatcherInitializer interface {
	Initialize(watcher registry.Watcher)
}

WatcherInitializer is used for initialization of shareable resources between watcher plugins. After initialization the resources have to be set separately.

Jump to

Keyboard shortcuts

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