Versions in this module Expand all Collapse all v0 v0.1.1 Dec 4, 2019 Changes in this version + func Monitor(addr, dir string) + func Subscriber(port string, handler func(event *pb.EventRequest)) + type ActionHandler struct + Client pb.WatcherClient + func (g *ActionHandler) OnFileCreated(path string) error + func (g *ActionHandler) OnFileDeleted(path string) error + type EventHandler interface + OnFileCreated func(path string) error + OnFileDeleted func(path string) error + type Watcher struct + Dir string + EventHandler EventHandler + func New(dir string, eventHanlder EventHandler) *Watcher + func (w *Watcher) Run() error + func (w *Watcher) Stop()