fsnotify

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 13 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) Close added in v1.5.0

func (s *Strategy) Close()

Close implements the hotload.Strategy interface. Closes this strategy by closing the internal watcher and closing all the update channels.

func (*Strategy) CloseWatch added in v1.5.0

func (s *Strategy) CloseWatch(pth string, pathQry string) error

CloseWatch implements the hotload.Strategy interface. Closes the specified watch by removing the path from the watcher and closing the path's update channel.

func (*Strategy) Watch

func (s *Strategy) Watch(ctx context.Context, pth string, pathQry string) (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