watchconfig

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Overview

Package watchconfig watches for config file changes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile struct {
	ConfigFilename string
	// contains filtered or unexported fields
}

func (ConfigFile) WatchConfig

func (cf ConfigFile) WatchConfig(onChange func(*fsnotify.Watcher, chan interface{})) error

WatchConfig will watch the config file and call onChange if the file contents change

Jump to

Keyboard shortcuts

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