From bac76a98bf4e90610d0a7105d2ebe6872dc147d4 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Mon, 9 Feb 2026 13:25:17 +0200 Subject: feat: svc crate --- lib/shared-svc/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/shared-svc/src/lib.rs (limited to 'lib/shared-svc/src/lib.rs') diff --git a/lib/shared-svc/src/lib.rs b/lib/shared-svc/src/lib.rs new file mode 100644 index 0000000..92d9c32 --- /dev/null +++ b/lib/shared-svc/src/lib.rs @@ -0,0 +1,16 @@ +#[cfg(feature = "cache")] +pub mod cache; + +use thiserror::Error; + +#[derive(Error, Debug)] +pub enum ServiceError { + #[error("data store disconnected")] + Cache(#[from] redis::RedisError), + #[error("the data for key `{0}` is not available")] + Redaction(String), + #[error("invalid header (expected {expected:?}, found {found:?})")] + InvalidHeader { expected: String, found: String }, + #[error("unknown data store error")] + Unknown, +} -- cgit v1.2.3