Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWatchFolder ¶
func AddWatchFolder(ctx context.Context, pool *pgxpool.Pool, path, action string, config json.RawMessage) (int64, error)
AddWatchFolder adds a new directory to the watch_folders table.
func DeleteWatchFolder ¶
DeleteWatchFolder removes a directory from watch_folders.
func GetPollInterval ¶
GetPollInterval returns the fallback polling interval in seconds.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon coordinates filesystem event monitoring for active watch folders.
type WatchFolder ¶
type WatchFolder struct {
ID int64 `json:"id"`
Path string `json:"path"`
Action string `json:"action"` // "organize" | "convert"
Config json.RawMessage `json:"config"`
Enabled bool `json:"enabled"`
LastScan *time.Time `json:"last_scan,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
WatchFolder represents a configured directory watcher in PostgreSQL.
func ListWatchFolders ¶
ListWatchFolders queries all configured watch folders from PostgreSQL.