Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlFSync ¶
type SqlFSync struct { // pointer to database connection DB *gorm.DB // list of directories to watch Watches []WatchEntry }
SqlFSync watches a set of directories for created or deleted files, and inserts or deletes from the database, respectively.
type WatchEntry ¶
type WatchEntry struct { // full path to directory Path string // Pointer to struct that represents // the entity in the database Model interface{} // Watches Path for create or delete events FSWatcher *fsnotify.Watcher }
WatchEntry represents a single directory
Click to show internal directories.
Click to hide internal directories.