github.com/checksum/notify@v0.0.0-20190119234841-59aa2d88664f/watcher_stub.go (about) 1 // Copyright (c) 2014-2015 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 // +build !darwin,!linux,!freebsd,!dragonfly,!netbsd,!openbsd,!windows 6 // +build !kqueue,!solaris 7 8 package notify 9 10 import "errors" 11 12 type stub struct{ error } 13 14 // newWatcher stub. 15 func newWatcher(chan<- EventInfo) watcher { 16 return stub{errors.New("notify: not implemented")} 17 } 18 19 // Following methods implement notify.watcher interface. 20 func (s stub) Watch(string, Event) error { return s } 21 func (s stub) Rewatch(string, Event, Event) error { return s } 22 func (s stub) Unwatch(string) (err error) { return s } 23 func (s stub) Close() error { return s }