Expand description
hyperlane-plugin-maintenance
Lock-free atomic maintenance and read-only mode middleware for Hyperlane
with zero-restart live switching, path/token bypasses, and prebuilt 503
wire responses.
Structs§
- Maintenance
Config - Configuration for
MaintenancePlugin. - Maintenance
Hook - Opt-in request middleware enforcing live maintenance and read-only windows.
- Maintenance
Plugin - Lock-free compiled maintenance gate backing
MaintenanceHook.
Enums§
- Maintenance
Decision - Evaluation outcome returned by [
MaintenancePlugin::evaluate]. - Maintenance
Mode - Runtime operating mode enforced by [
MaintenancePlugin].
Constants§
- DEFAULT_
BYPASS_ HEADER - Default HTTP bypass header name (
x-maintenance-bypass). - DEFAULT_
MAINTENANCE_ BODY - Default JSON body emitted while in full maintenance mode.
- DEFAULT_
MAINTENANCE_ CONTENT_ TYPE - Default
Content-Typeemitted for maintenance503responses. - DEFAULT_
READ_ ONLY_ BODY - Default JSON body emitted when a write request is blocked in read-only mode.
- DEFAULT_
RETRY_ AFTER_ SECS - Default
Retry-Afterheader value in seconds (120).