aboutsummaryrefslogtreecommitdiffstats
path: root/lib/auth-service/src/lib.rs
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2026-02-08 13:35:04 +0200
committerrtkay123 <dev@kanjala.com>2026-02-08 13:35:04 +0200
commit9b0c8c23e85930ef1128e73e06713c8a36708625 (patch)
tree87ddb6e754f3716c8736c13d0d7832fd717e6e4c /lib/auth-service/src/lib.rs
parente4aa3d837543cdc91b563da32c36cdc3b86529e9 (diff)
downloadsellershut-9b0c8c23e85930ef1128e73e06713c8a36708625.tar.bz2
sellershut-9b0c8c23e85930ef1128e73e06713c8a36708625.zip
feat: merge config
Diffstat (limited to 'lib/auth-service/src/lib.rs')
-rw-r--r--lib/auth-service/src/lib.rs23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/auth-service/src/lib.rs b/lib/auth-service/src/lib.rs
index b93cf3f..f7b9e80 100644
--- a/lib/auth-service/src/lib.rs
+++ b/lib/auth-service/src/lib.rs
@@ -1,14 +1,15 @@
-pub fn add(left: u64, right: u64) -> u64 {
- left + right
-}
+pub mod client;
-#[cfg(test)]
-mod tests {
- use super::*;
+use thiserror::Error;
- #[test]
- fn it_works() {
- let result = add(2, 2);
- assert_eq!(result, 4);
- }
+#[derive(Error, Debug)]
+pub enum AuthServiceError {
+ #[error("invalid url provided")]
+ InvalidUrl(#[from] url::ParseError),
+ #[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,
}