use super::*;
#[derive(Clone, Data, Debug, Eq, PartialEq)]
pub struct MaintenanceConfig {
#[get(type(copy))]
pub(crate) initial_mode: MaintenanceMode,
pub(crate) exempt_paths: Vec<String>,
pub(crate) exempt_prefixes: Vec<String>,
pub(crate) bypass_header: String,
pub(crate) bypass_tokens: Vec<String>,
#[get(type(copy))]
pub(crate) status: HttpStatus,
#[get(type(copy))]
pub(crate) retry_after_secs: Option<u64>,
pub(crate) content_type: String,
pub(crate) maintenance_body: Vec<u8>,
pub(crate) read_only_body: Vec<u8>,
}
#[derive(Debug)]
pub struct MaintenancePlugin {
pub(crate) config: MaintenanceConfig,
pub(crate) mode: AtomicU8,
pub(crate) bypass_header_lower: String,
pub(crate) bypass_tokens: Box<[Box<[u8]>]>,
pub(crate) exempt_small: Box<[String]>,
pub(crate) exempt_set: Option<HashSetXxHash3_64<String>>,
pub(crate) exempt_prefixes: Box<[String]>,
pub(crate) maintenance_wire: Vec<u8>,
pub(crate) read_only_wire: Vec<u8>,
}
#[derive(Clone, Copy, Debug, Default)]
#[hyperlane::request_middleware(-109)]
pub struct MaintenanceHook;