watcher

package
v2.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileWatcher

func NewFileWatcher[T any](fileName string) settings.Watcher[T]

NewFileWatcher - create new file watcher

Types

type FileWatcher

type FileWatcher[T any] struct {
	// contains filtered or unexported fields
}

FileWatcher - watch file with settings and update it in application

func (*FileWatcher[T]) Setup

func (watcher *FileWatcher[T]) Setup(cfg *settings.Configuration[T], creator settings.WatcherSettingsCreator[T]) (err error)

Setup - setup settings for watcher

Jump to

Keyboard shortcuts

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