watcher-skip.go 244 B

1234567891011121314
  1. //go:build nowatcher
  2. package watcher
  3. import "go.uber.org/zap"
  4. func InitWatcher(filePatterns []string, callback func(), zapLogger *zap.Logger) error {
  5. zapLogger.Error("watcher support is not enabled")
  6. return nil
  7. }
  8. func DrainWatcher() {
  9. }