Skip to main content

hyperlane_plugin_tenant/
lib.rs

1//! hyperlane-plugin-tenant
2//!
3//! Multi-tenant resolution and isolation middleware for Hyperlane supporting
4//! header, host-subdomain, and path-prefix tenant extraction, `XxHash3_64`
5//! registry lookups, pluggable [`TenantResolver`] hooks, and prebuilt error
6//! wire responses.
7
8mod r#const;
9mod r#enum;
10mod r#fn;
11mod r#impl;
12mod r#static;
13mod r#struct;
14mod r#trait;
15
16#[cfg(test)]
17#[path = "../tests/mod.rs"]
18mod tests;
19
20pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*, r#trait::*};
21
22pub(crate) use r#static::*;
23
24use std::{
25    collections::VecDeque,
26    sync::{Arc, OnceLock},
27};
28
29use {
30    hyperlane::{
31        CONTENT_TYPE, Context, HOST, HashMapXxHash3_64, HttpStatus, Request, Response,
32        ResponseError, ServerHook, Status, Stream, hash_map_xx_hash3_64,
33    },
34    lombok_macros::*,
35};