5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-15 04:10:27 +00:00
matterbridge/vendor/github.com/spf13/viper/watch_unsupported.go

33 lines
637 B
Go
Raw Normal View History

2023-01-28 21:57:53 +00:00
//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
// +build appengine !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows
2021-06-16 19:00:49 +00:00
package viper
import (
2023-01-28 21:57:53 +00:00
"fmt"
"runtime"
2021-06-16 19:00:49 +00:00
"github.com/fsnotify/fsnotify"
)
2023-01-28 21:57:53 +00:00
func newWatcher() (*watcher, error) {
return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS)
}
2021-06-16 19:00:49 +00:00
type watcher struct {
Events chan fsnotify.Event
Errors chan error
}
func (*watcher) Close() error {
return nil
}
func (*watcher) Add(name string) error {
return nil
}
func (*watcher) Remove(name string) error {
return nil
}