confwatcher

package
v0.0.0-...-177ec65 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package confwatcher contains a configuration watcher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfWatcher

type ConfWatcher struct {
	// contains filtered or unexported fields
}

ConfWatcher is a configuration file watcher.

func New

func New(confPath string) (*ConfWatcher, error)

New allocates a ConfWatcher.

func (*ConfWatcher) Close

func (w *ConfWatcher) Close()

Close closes a ConfWatcher.

func (*ConfWatcher) Watch

func (w *ConfWatcher) Watch() chan struct{}

Watch returns a channel that is called after the configuration file has changed.

Jump to

Keyboard shortcuts

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