Skip to main content

Crate hyperlane_plugin_maintenance

Crate hyperlane_plugin_maintenance 

Source
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§

MaintenanceConfig
Configuration for MaintenancePlugin.
MaintenanceHook
Opt-in request middleware enforcing live maintenance and read-only windows.
MaintenancePlugin
Lock-free compiled maintenance gate backing MaintenanceHook.

Enums§

MaintenanceDecision
Evaluation outcome returned by [MaintenancePlugin::evaluate].
MaintenanceMode
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-Type emitted for maintenance 503 responses.
DEFAULT_READ_ONLY_BODY
Default JSON body emitted when a write request is blocked in read-only mode.
DEFAULT_RETRY_AFTER_SECS
Default Retry-After header value in seconds (120).