MCPcopy
hub / github.com/yusing/godoxy / NewConfigFileWatcher

Function NewConfigFileWatcher

internal/watcher/config_file_watcher.go:21–24  ·  view source on GitHub ↗

NewConfigFileWatcher creates a new file watcher for a file under common.ConfigBasePath.

(filename string)

Source from the content-addressed store, hash-verified

19
20// NewConfigFileWatcher creates a new file watcher for a file under common.ConfigBasePath.
21func NewConfigFileWatcher(filename string) Watcher {
22 configDirWatcherInitOnce.Do(initConfigDirWatcher)
23 return configDirWatcher.Add(filename)
24}

Callers 1

LoadFunction · 0.92

Calls 2

DoMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected