Request handlers for Admin REST API endpoints.
Each handler receives a request map with:
Each handler returns a result map with either:
Request handlers for Admin REST API endpoints.
Each handler receives a request map with:
- :exchange - The HttpExchange object
- :params - Path parameters extracted from URL
- :body - Parsed JSON request body (or nil)
Each handler returns a result map with either:
- {:data ...} for success
- {:error "message" :code "CODE" :status 400} for errors(handle-add-drain {:keys [body]})POST /api/v1/drains - Start draining a backend
POST /api/v1/drains - Start draining a backend
(handle-add-proxy {:keys [body]})POST /api/v1/proxies - Add a new proxy
POST /api/v1/proxies - Add a new proxy
(handle-add-sni-route {:keys [params body]})POST /api/v1/proxies/:name/sni-routes - Add an SNI route
POST /api/v1/proxies/:name/sni-routes - Add an SNI route
(handle-add-source-route {:keys [params body]})POST /api/v1/proxies/:name/routes - Add a source route
POST /api/v1/proxies/:name/routes - Add a source route
(handle-clear-connections _request)DELETE /api/v1/connections - Clear all connections
DELETE /api/v1/connections - Clear all connections
(handle-clear-rate-limits _request)DELETE /api/v1/rate-limits - Clear all rate limits
DELETE /api/v1/rate-limits - Clear all rate limits
(handle-force-close-circuit {:keys [params]})POST /api/v1/circuits/:target/close - Force circuit close
POST /api/v1/circuits/:target/close - Force circuit close
(handle-force-dns-resolve {:keys [params]})POST /api/v1/dns/:hostname/resolve - Force DNS resolution
POST /api/v1/dns/:hostname/resolve - Force DNS resolution
(handle-force-lb-update _request)POST /api/v1/lb/update - Force load balancing weight update
POST /api/v1/lb/update - Force load balancing weight update
(handle-force-open-circuit {:keys [params]})POST /api/v1/circuits/:target/open - Force circuit open
POST /api/v1/circuits/:target/open - Force circuit open
(handle-get-all-health _request)GET /api/v1/health - Get all health statuses
GET /api/v1/health - Get all health statuses
(handle-get-circuits _request)GET /api/v1/circuits - Get all circuit breaker states
GET /api/v1/circuits - Get all circuit breaker states
(handle-get-config _request)GET /api/v1/config - Get current configuration
GET /api/v1/config - Get current configuration
(handle-get-connection-count _request)GET /api/v1/connections/count - Get connection count
GET /api/v1/connections/count - Get connection count
(handle-get-connection-stats _request)GET /api/v1/connections/stats - Get connection statistics
GET /api/v1/connections/stats - Get connection statistics
(handle-get-connections _request)GET /api/v1/connections - List active connections
GET /api/v1/connections - List active connections
(handle-get-dns-status _request)GET /api/v1/dns - Get all DNS resolution status
GET /api/v1/dns - Get all DNS resolution status
(handle-get-drains _request)GET /api/v1/drains - Get all draining backends
GET /api/v1/drains - Get all draining backends
(handle-get-lb-status _request)GET /api/v1/lb - Get load balancing status
GET /api/v1/lb - Get load balancing status
(handle-get-proxy {:keys [params]})GET /api/v1/proxies/:name - Get a specific proxy
GET /api/v1/proxies/:name - Get a specific proxy
(handle-get-proxy-health {:keys [params]})GET /api/v1/health/:proxy - Get health status for a proxy
GET /api/v1/health/:proxy - Get health status for a proxy
(handle-get-rate-limits _request)GET /api/v1/rate-limits - Get rate limit configuration
GET /api/v1/rate-limits - Get rate limit configuration
(handle-get-status _request)GET /api/v1/status - Get overall LB status
GET /api/v1/status - Get overall LB status
(handle-list-proxies _request)GET /api/v1/proxies - List all proxies
GET /api/v1/proxies - List all proxies
(handle-list-sni-routes {:keys [params]})GET /api/v1/proxies/:name/sni-routes - List SNI routes for a proxy
GET /api/v1/proxies/:name/sni-routes - List SNI routes for a proxy
(handle-list-source-routes {:keys [params]})GET /api/v1/proxies/:name/routes - List source routes for a proxy
GET /api/v1/proxies/:name/routes - List source routes for a proxy
(handle-reload-config _request)POST /api/v1/reload - Reload configuration from file
POST /api/v1/reload - Reload configuration from file
(handle-remove-drain {:keys [params body]})DELETE /api/v1/drains/:target - Cancel draining for a backend
DELETE /api/v1/drains/:target - Cancel draining for a backend
(handle-remove-proxy {:keys [params]})DELETE /api/v1/proxies/:name - Remove a proxy
DELETE /api/v1/proxies/:name - Remove a proxy
(handle-remove-sni-route {:keys [params]})DELETE /api/v1/proxies/:name/sni-routes/:hostname - Remove an SNI route
DELETE /api/v1/proxies/:name/sni-routes/:hostname - Remove an SNI route
(handle-remove-source-route {:keys [params]})DELETE /api/v1/proxies/:name/routes/:source - Remove a source route
DELETE /api/v1/proxies/:name/routes/:source - Remove a source route
(handle-reset-circuit {:keys [params]})POST /api/v1/circuits/:target/reset - Reset circuit
POST /api/v1/circuits/:target/reset - Reset circuit
(handle-set-backend-rate-limit {:keys [body]})POST /api/v1/rate-limits/backend - Set backend rate limit
POST /api/v1/rate-limits/backend - Set backend rate limit
(handle-set-source-rate-limit {:keys [body]})POST /api/v1/rate-limits/source - Set source rate limit
POST /api/v1/rate-limits/source - Set source rate limit
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |