fsnotify

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

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

Strategy implements the hotload Strategy inferface by using fsnotify under the covers.

func NewStrategy

func NewStrategy() *Strategy

NewStrategy implements a hotload strategy that monitors config changes in a file using fsnotify.

func (*Strategy) Watch

func (s *Strategy) Watch(ctx context.Context, pth string, options url.Values) (value string, values <-chan string, err error)

Watch implements the hotload.Strategy interface.

Jump to

Keyboard shortcuts

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