Daemon is the watch daemon that keeps the graph updated
| 16 | |
| 17 | // Daemon is the watch daemon that keeps the graph updated |
| 18 | type 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 |
| 29 | func NewDaemon(root string, verbose bool) (*Daemon, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected