Skip to main content

loonfs_server/
lib.rs

1//! The LoonFS server.
2//!
3//! Hosts an embedded [`loonfs`] runtime behind the v0 HTTP API for
4//! remote-mode clients, with per-namespace write batching in front of the
5//! commit protocol. Embedded-mode callers skip this crate entirely and use
6//! `loonfs` directly.
7
8mod config;
9mod http;
10mod trace;
11
12pub use config::{
13    load_server_config, GrepConfig, GrepMode, MaintenanceMode, RuntimeCacheConfigOverrides,
14    ServerConfig, ServerConfigError, StoreConfig, TlsServerConfig,
15};
16pub use http::{app, serve, serve_with_shutdown, ServeError, TlsConfigError};
17#[cfg(feature = "openapi")]
18pub use http::{openapi_document, openapi_json_pretty};
19pub use trace::{init_tracing_from_env, TraceInitError};