To simplify deployment of the log validator, this allows wildcards (using go's filepath.Glob) to be included in the file paths. In order to detect new files, a new background goroutine polls the glob patterns every minute for matches. Because the "monitor" function is running in its own goroutine, a lock is needed to ensure it's not trying to add new tailers while shutdown is happening. |
||
---|---|---|
.. | ||
validator | ||
log.go | ||
log_test.go | ||
mock.go | ||
prod_prefix.go | ||
test_prefix.go |