watcher

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	Process(config.Dynamic)
}

Provider-> Watcher -> Processor Watcher is mainly responsbile for throttling.

type Watcher

type Watcher struct {
	Processor Processor
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(providers []config.ProviderConfig, processor Processor, logger *logger.Logger) *Watcher

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context)

Throttling mechanism inspired by configwatcher in Traefik :) (Though a simplified version)

Jump to

Keyboard shortcuts

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