monitor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMonitor

type ConfigMonitor interface {
	Key() string
	Config() interface{}
	CallbackSize() int
	Start() error
	WatcherID() int64
	Stop()
	SetManager(manager parser.ConfigManager)
	RegisterCallback(callback func()) int64
	DeregisterCallback(uniqueID int64)
}

func NewConfigMonitor

func NewConfigMonitor(key string, watcher filewatcher.FileWatcher) (ConfigMonitor, error)

NewConfigMonitor init a monitor for the config file

Jump to

Keyboard shortcuts

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