mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 04:30:09 +00:00
Initial commit
This commit is contained in:
11
common/watcher/watcher.go
Normal file
11
common/watcher/watcher.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package watcher
|
||||
|
||||
type EventHandler func(filename string) error
|
||||
type ErrorHandler func(err error)
|
||||
|
||||
type Watcher interface {
|
||||
SetEventHandler(handler EventHandler)
|
||||
SetErrorHandler(handler ErrorHandler)
|
||||
Watch() error
|
||||
Close() error
|
||||
}
|
||||
Reference in New Issue
Block a user