aboutsummaryrefslogtreecommitdiffstats
path: root/lib/shared-svc/src/lib.rs
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2026-02-09 13:25:17 +0200
committerrtkay123 <dev@kanjala.com>2026-02-09 13:25:17 +0200
commitbac76a98bf4e90610d0a7105d2ebe6872dc147d4 (patch)
tree341a1a31bd20741f781d48e01f7ded253bf34caf /lib/shared-svc/src/lib.rs
parent253c5631ae09fd5ad9fd6b3eff104e6099d4676c (diff)
downloadsellershut-bac76a98bf4e90610d0a7105d2ebe6872dc147d4.tar.bz2
sellershut-bac76a98bf4e90610d0a7105d2ebe6872dc147d4.zip
feat: svc crate
Diffstat (limited to 'lib/shared-svc/src/lib.rs')
-rw-r--r--lib/shared-svc/src/lib.rs16
1 files changed, 16 insertions, 0 deletions
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,
+}