github.com/dgallion1/notify@v0.9.3-0.20201128171805-931189d936e0/watcher_stub.go (about) 1 // Copyright (c) 2014-2018 The Notify Authors. All rights reserved. 2 // Use of this source code is governed by the MIT license that can be 3 // found in the LICENSE file. 4 5 package notify 6 7 type watcherStub struct{ error } 8 9 // Following methods implement notify.watcher interface. 10 func (s watcherStub) Watch(string, Event) error { return s } 11 func (s watcherStub) Rewatch(string, Event, Event) error { return s } 12 func (s watcherStub) Unwatch(string) (err error) { return s } 13 func (s watcherStub) Close() error { return s }