github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/worker/filenotifywatcher/watcher_other.go (about) 1 //go:build !linux 2 // +build !linux 3 4 // Copyright 2023 Canonical Ltd. 5 // Licensed under the AGPLv3, see LICENCE file for details. 6 7 package filenotifywatcher 8 9 type watcher struct{} 10 11 func newWatcher() (INotifyWatcher, error) { 12 return &watcher{}, nil 13 } 14 15 func (w *watcher) Watch(path string) error { 16 return nil 17 } 18 19 func (w *watcher) Events() <-chan *inotify.Event { 20 return nil 21 } 22 23 func (w *watcher) Errors() <-chan error { 24 return nil 25 } 26 27 func (w *watcher) Close() error { 28 return nil 29 }