pub struct DaemonAckConfig {
pub enabled: bool,
pub storage_path: Option<String>,
pub api_key: Option<String>,
pub toml_path: Option<String>,
}Expand description
Daemon-side ack store config.
Fields§
§enabled: boolWhether the daemon-side ack store (JSONL persistence + HTTP API)
is enabled. Default true. Disabling skips both the TOML acks
load and the JSONL store init at startup, and the three ack
routes return 503 Service Unavailable.
storage_path: Option<String>Optional override for the JSONL storage path. Default resolves
at runtime via dirs::data_local_dir() to
<data_local>/perf-sentinel/acks.jsonl.
api_key: Option<String>Optional opt-in API key. When set, POST and DELETE on
/api/findings/<sig>/ack require an X-API-Key header
matching this value (constant-time compared). Default None
means no auth, suitable for the loopback-only deployment.
toml_path: Option<String>Optional override for the CI ack TOML file path read at daemon
startup. Default .perf-sentinel-acknowledgments.toml in CWD.
Trait Implementations§
Source§impl Clone for DaemonAckConfig
impl Clone for DaemonAckConfig
Source§fn clone(&self) -> DaemonAckConfig
fn clone(&self) -> DaemonAckConfig
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 DaemonAckConfig
impl Debug for DaemonAckConfig
Auto Trait Implementations§
impl Freeze for DaemonAckConfig
impl RefUnwindSafe for DaemonAckConfig
impl Send for DaemonAckConfig
impl Sync for DaemonAckConfig
impl Unpin for DaemonAckConfig
impl UnsafeUnpin for DaemonAckConfig
impl UnwindSafe for DaemonAckConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request