Liking cljdoc? Tell your friends :D

wagoe.platform.shell.interceptors

Universal interceptors for cross-cutting concerns.

These interceptors handle common infrastructure concerns like logging, metrics, error handling, and context management across all modules.

Universal interceptors for cross-cutting concerns.

These interceptors handle common infrastructure concerns like logging,
metrics, error handling, and context management across all modules.
raw docstring

add-error-handlingclj

(add-error-handling pipeline)

Adds error handling interceptors to any pipeline.

Adds error handling interceptors to any pipeline.
sourceraw docstring

base-observability-pipelineclj

Base pipeline with essential observability interceptors. Suitable for most operations that don't need specialized handling.

Base pipeline with essential observability interceptors.
Suitable for most operations that don't need specialized handling.
sourceraw docstring

cli-response-pipelineclj

CLI-specific pipeline with command/response handling.

CLI-specific pipeline with command/response handling.
sourceraw docstring

context-interceptorclj

Establishes basic context for request processing.

Adds:

  • :correlation-id - UUID for request tracing
  • :now - Current timestamp
  • Ensures :op is present for operation identification
Establishes basic context for request processing.

Adds:
- :correlation-id - UUID for request tracing
- :now - Current timestamp
- Ensures :op is present for operation identification
sourceraw docstring

convert-exception-to-responseclj

(convert-exception-to-response ctx)

Converts an exception in the context into an appropriate HTTP error response. Uses error mappings from the context to map domain-specific error types to HTTP responses.

Converts an exception in the context into an appropriate HTTP error response.
Uses error mappings from the context to map domain-specific error types to HTTP responses.
sourceraw docstring

create-cli-pipelineclj

(create-cli-pipeline & custom-interceptors)

Creates a complete CLI pipeline with custom interceptors.

Creates a complete CLI pipeline with custom interceptors.
sourceraw docstring

create-http-pipelineclj

(create-http-pipeline & custom-interceptors)

Creates a complete HTTP pipeline with custom interceptors inserted at the appropriate point.

Creates a complete HTTP pipeline with custom interceptors inserted at the appropriate point.
sourceraw docstring

effects-dispatchclj

Executes side effects returned by core functions.

Processes the :effects vector from core function results and executes each effect, collecting any errors for later handling.

Executes side effects returned by core functions.

Processes the :effects vector from core function results and executes
each effect, collecting any errors for later handling.
sourceraw docstring

error-captureclj

Captures exceptions in error reporting system.

Captures exceptions in error reporting system.
sourceraw docstring

error-handling-pipelineclj

Error handling interceptors for exception management.

Error handling interceptors for exception management.
sourceraw docstring

error-normalizeclj

Generic error normalization interceptor that works with context error mappings. This runs in the :error phase when actual exceptions are thrown during pipeline execution.

Generic error normalization interceptor that works with context error mappings.
This runs in the :error phase when actual exceptions are thrown during pipeline execution.
sourceraw docstring

error-response-converterclj

Converts failed contexts (halted with exceptions) into proper HTTP error responses. Runs in both leave and error phases to catch contexts that were halted by fail-with-exception or had exceptions during pipeline execution.

Uses error mappings from the context to map domain-specific error types to HTTP responses.

Converts failed contexts (halted with exceptions) into proper HTTP error responses.
Runs in both leave and error phases to catch contexts that were halted by fail-with-exception
or had exceptions during pipeline execution.

Uses error mappings from the context to map domain-specific error types to HTTP responses.
sourceraw docstring

http-response-pipelineclj

HTTP-specific pipeline with request/response handling.

HTTP-specific pipeline with request/response handling.
sourceraw docstring

logging-completeclj

Logs successful completion of an operation with timing information.

Logs successful completion of an operation with timing information.
sourceraw docstring

logging-errorclj

Logs operation failures with error details.

Logs operation failures with error details.
sourceraw docstring

logging-startclj

Logs the start of an operation with structured data.

Logs the start of an operation with structured data.
sourceraw docstring

metrics-completeclj

Records operation completion metrics including success/failure and latency.

Records operation completion metrics including success/failure and latency.
sourceraw docstring

metrics-errorclj

Records operation failure metrics when exceptions occur.

Records operation failure metrics when exceptions occur.
sourceraw docstring

metrics-startclj

Records operation attempt and starts timing measurement.

Records operation attempt and starts timing measurement.
sourceraw docstring

response-shape-cliclj

Shapes results into CLI response format with exit codes.

This interceptor handles both :result format (with :status/:data/:errors) and :response format (direct CLI response) to maintain compatibility.

For error responses already set by error handling interceptors, converts HTTP-style responses to CLI format with detailed error messages.

Shapes results into CLI response format with exit codes.

This interceptor handles both :result format (with :status/:data/:errors)
and :response format (direct CLI response) to maintain compatibility.

For error responses already set by error handling interceptors, converts
HTTP-style responses to CLI format with detailed error messages.
sourceraw docstring

response-shape-httpclj

Shapes successful results into HTTP response format.

Shapes successful results into HTTP response format.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close