Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewEtcdSubscriber ¶
func MustNewEtcdSubscriber(conf subscriber.EtcdConf) subscriber.Subscriber
MustNewEtcdSubscriber returns an etcd Subscriber, exits on errors.
func WithUseEnv ¶
func WithUseEnv(useEnv bool) opts.Opt[FsnotifyOpts]
func WithUseKey ¶
func WithUseKey(useKey string) opts.Opt[FsnotifyOpts]
Types ¶
type Fsnotify ¶
type Fsnotify struct {
// fsnotify watcher
*fsnotify.Watcher
// contains filtered or unexported fields
}
func MustNewFsnotifySubscriber ¶
func MustNewFsnotifySubscriber(path string, op ...opts.Opt[FsnotifyOpts]) *Fsnotify
func (*Fsnotify) AddListener ¶
type FsnotifyOpts ¶
func (FsnotifyOpts) DefaultOptions ¶
func (opts FsnotifyOpts) DefaultOptions() FsnotifyOpts
Click to show internal directories.
Click to hide internal directories.