reload

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(logger *zap.SugaredLogger, ctx context.Context, cfgPath string, debounce time.Duration, onReload OnReload) error

Watch watches the config file for changes and calls onReload with debouncing. Blocks until ctx is cancelled.

Types

type OnReload

type OnReload func(cfg *config.Root)

OnReload is called when the config file changes. The new config is passed.

Jump to

Keyboard shortcuts

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