update comments
This commit is contained in:
parent
9b89735265
commit
bd2fe2fc9d
@ -24,14 +24,6 @@ var Chrome = struct {
|
||||
"/home/spike/.config/google-chrome/Default/",
|
||||
}
|
||||
|
||||
type IWatchable interface {
|
||||
Watch() bool
|
||||
Watcher() *fsnotify.Watcher // returns browser watcher
|
||||
Parse() // Main parsing method
|
||||
GetPath() string //returns bookmark path
|
||||
GetDir() string // returns bookmarks dir
|
||||
}
|
||||
|
||||
type IBrowser interface {
|
||||
SetupWatcher() // Starts watching bookmarks and runs Load on change
|
||||
Watch() bool
|
||||
|
@ -4,6 +4,14 @@ import (
|
||||
"github.com/fsnotify/fsnotify"
|
||||
)
|
||||
|
||||
type IWatchable interface {
|
||||
Watch() bool
|
||||
Watcher() *fsnotify.Watcher // returns linked watcher
|
||||
Parse() // Main parsing method
|
||||
GetPath() string // returns watched path
|
||||
GetDir() string // returns watched dir
|
||||
}
|
||||
|
||||
func WatcherThread(w IWatchable) {
|
||||
|
||||
bookmarkPath := w.GetPath()
|
||||
|
Loading…
Reference in New Issue
Block a user