Re-exports§
pub use db::Database;pub use metrics::Metrics;pub use premade::PremadeManager;pub use rate_limiter::RateLimiter;
Modules§
- bootstrap
- cert
- cli
- db
- editor
- metrics
- orchestration
- Server shutdown orchestration.
- paths
- premade
- process
- Process helpers used by stop/restart and the croncheck maintenance lock.
- rate_
limiter - server_
lock - Kernel-backed singleton lock for the
snip-syncserver.
Structs§
- AppState
- Config
- Config
File - Cors
Config - Database
Config - Limits
Config - Metrics
Config - Premade
Config - Rate
Limit Config - Server
Config - Snip
Sync Service
Enums§
Constants§
- DEFAULT_
DB_ MAX_ CONNECTIONS - DEFAULT_
GRPC_ MAX_ MESSAGE_ SIZE - DEFAULT_
MAX_ API_ KEY_ LENGTH - DEFAULT_
MAX_ COMMAND_ LENGTH - DEFAULT_
MAX_ DESCRIPTION_ LENGTH - DEFAULT_
MAX_ DEVICE_ ID_ LENGTH - DEFAULT_
MAX_ ID_ LENGTH - DEFAULT_
MAX_ SYNC_ SNIPPETS - DEFAULT_
MAX_ TAGS - DEFAULT_
MAX_ TAG_ LENGTH - DEFAULT_
RATE_ LIMIT_ PER_ MINUTE - DEFAULT_
REQUEST_ TIMEOUT_ SECS - MAX_
REQUEST_ LIMIT
Functions§
- extract_
api_ key - Extract the API key from a gRPC request’s
authorizationmetadata. Falls back to the bodyapi_keyfield for backward compatibility. - parse_
bool_ env - Parse an optional boolean environment variable.
- parse_
env - Parse an optional environment variable, returning the typed value if present and valid.