pub struct ArchiverConfig {
pub listen_addr: String,
pub listen_port: u16,
pub storage: StorageConfig,
pub engine: EngineConfig,
pub cluster: Option<ClusterConfig>,
pub failover: Option<FailoverConfig>,
pub pva: Option<PvaConfig>,
pub api_keys: Option<Vec<String>>,
pub security: SecurityConfig,
pub tls: Option<TlsConfig>,
}Expand description
Top-level archiver configuration (TOML-based).
Fields§
§listen_addr: String§listen_port: u16§storage: StorageConfig§engine: EngineConfig§cluster: Option<ClusterConfig>§failover: Option<FailoverConfig>Optional list of external archivers used for failover-merged retrieval. When set, retrieval handlers fetch from each peer in addition to local data and merge by timestamp (with duplicate-timestamp drop).
pva: Option<PvaConfig>PVA retrieval RPC server. When set, the archiver hosts
archappl/getData and archappl/getDataAtTime PVA RPC PVs.
api_keys: Option<Vec<String>>Optional API keys for management endpoint authentication.
If set, mgmt write endpoints require Authorization: Bearer <key> or X-API-Key: <key>.
Retrieval GET endpoints remain open.
security: SecurityConfigSecurity settings (CORS, rate limiting, body limits).
tls: Option<TlsConfig>Optional TLS configuration for HTTPS.
Implementations§
Trait Implementations§
Source§impl Clone for ArchiverConfig
impl Clone for ArchiverConfig
Source§fn clone(&self) -> ArchiverConfig
fn clone(&self) -> ArchiverConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArchiverConfig
impl Debug for ArchiverConfig
Source§impl<'de> Deserialize<'de> for ArchiverConfig
impl<'de> Deserialize<'de> for ArchiverConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ArchiverConfig
impl RefUnwindSafe for ArchiverConfig
impl Send for ArchiverConfig
impl Sync for ArchiverConfig
impl Unpin for ArchiverConfig
impl UnsafeUnpin for ArchiverConfig
impl UnwindSafe for ArchiverConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more