Skip to main contentCrate gity_daemon
Source - log_error
- Logs an error at ERROR level for critical failures that may need attention.
- log_success
- Logs a debug message for successful operations that may be useful for tracing.
- log_warn
- Logs an error at WARN level and returns it for optional propagation.
Use this when an error should be logged but operation should continue.
- AdaptivePollInterval
- Adaptive poll interval that adjusts based on activity.
Polls fast when active, slow when idle to save CPU.
- Daemon
- Core daemon logic. IPC layers wrap this struct.
- FsMonitorCache
- Memory-mapped fsmonitor cache for fast snapshot access.
- IdleScheduleConfig
- Configuration for idle-time scheduling.
- InProcessService
- Shared in-process service used by tests.
- NngClient
- IPC client implementation using async-nng REQ sockets.
- NngServer
- IPC server using async-nng REP sockets.
- NotificationServer
- Publishes daemon notifications over a PUB socket.
- NotificationStream
- NotificationSubscriber
- Subscribes to daemon notifications via SUB sockets.
- Runtime
- Background scheduler loop.
- Shutdown
- Signal shared by runtime/server tasks to coordinate shutdown.
- ServerError