Documentation
¶
Overview ¶
Package daemon runs the per-mount background sync loop and manages its lifecycle (detached start, pidfile, graceful stop).
The loop scans the working folder every scan-interval (cheap: size+mtime against the state cache) and talks to the remote every remote-interval — or immediately after local changes, so edits propagate quickly without hammering the object store.
Index ¶
- func LogPath(volDir string) string
- func PidPath(volDir string) string
- func Run(folder string, scanInterval, remoteInterval time.Duration) error
- func Running(volDir string) (int, bool)
- func Start(folder, volDir string, scanInterval, remoteInterval time.Duration) (int, error)
- func Stop(volDir string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PidPath ¶
The volume store is keyed by the mount id, so exactly one daemon runs per mount and its pid/log live in the store dir.
func Run ¶
Run is the daemon main loop, executed in the foreground of the (usually detached) `bdrive daemon run` process.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.