MCPcopy
hub / github.com/docker/compose / NewFileEvent

Function NewFileEvent

pkg/watch/notify.go:31–36  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

29type FileEvent string
30
31func NewFileEvent(p string) FileEvent {
32 if !filepath.IsAbs(p) {
33 panic(fmt.Sprintf("NewFileEvent only accepts absolute paths. Actual: %s", p))
34 }
35 return FileEvent(p)
36}
37
38type Notify interface {
39 // Start watching the paths set at init time

Callers 2

TestWatch_SyncFunction · 0.92
loopMethod · 0.85

Calls 1

FileEventTypeAlias · 0.85

Tested by 1

TestWatch_SyncFunction · 0.74