MCPcopy Create free account
hub / github.com/JordanCoin/codemap / Daemon

Struct Daemon

watch/daemon.go:18–26  ·  view source on GitHub ↗

Daemon is the watch daemon that keeps the graph updated

Source from the content-addressed store, hash-verified

16
17// Daemon is the watch daemon that keeps the graph updated
18type Daemon struct {
19 root string
20 graph *Graph
21 watcher *fsnotify.Watcher
22 gitCache *scanner.GitIgnoreCache
23 eventLog string // path to event log file
24 verbose bool
25 done chan struct{}
26}
27
28// NewDaemon creates a new watch daemon for the given root
29func NewDaemon(root string, verbose bool) (*Daemon, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected