Liking cljdoc? Tell your friends :D

wagoe.platform.shell.system.wiring

Integrant system lifecycle management for Wagoe application.

This namespace defines init-key and halt-key! multimethods for all system components, providing proper lifecycle management and dependency injection for the entire application.

Components:

  • :wagoe/db-context - Database connection pool and adapter
  • :wagoe/user-repository - User data persistence
  • :wagoe/session-repository - Session data persistence
  • :wagoe/user-service - User business logic orchestration
  • :wagoe/logging - Structured logging and audit trails
  • :wagoe/metrics - Application and business metrics collection
  • :wagoe/error-reporting - Error tracking and alerting
  • :wagoe/http-handler - HTTP request routing and handling
  • :wagoe/http-server - Jetty HTTP server

Usage: (require '[wagoe.config :as config]) (require '[integrant.core :as ig]) (def cfg (config/ig-config (config/load-config))) (def system (ig/init cfg)) (ig/halt! system)

Integrant system lifecycle management for Wagoe application.

This namespace defines init-key and halt-key! multimethods for all
system components, providing proper lifecycle management and dependency
injection for the entire application.

Components:
- :wagoe/db-context - Database connection pool and adapter
- :wagoe/user-repository - User data persistence
- :wagoe/session-repository - Session data persistence
- :wagoe/user-service - User business logic orchestration
- :wagoe/logging - Structured logging and audit trails
- :wagoe/metrics - Application and business metrics collection
- :wagoe/error-reporting - Error tracking and alerting
- :wagoe/http-handler - HTTP request routing and handling
- :wagoe/http-server - Jetty HTTP server

Usage:
  (require '[wagoe.config :as config])
  (require '[integrant.core :as ig])
  (def cfg (config/ig-config (config/load-config)))
  (def system (ig/init cfg))
  (ig/halt! system)
raw docstring

current-handlerclj

(current-handler)

Return the current live HTTP handler, or nil if not initialized.

Return the current live HTTP handler, or nil if not initialized.
sourceraw docstring

restart!clj

(restart!)

Restart the system (stop then start).

Returns: Started system map

Example: (restart!)

Restart the system (stop then start).

Returns:
  Started system map

Example:
  (restart!)
sourceraw docstring

start!clj

(start!)

Start the system using default configuration.

Returns: Started system map

Example: (start!)

Start the system using default configuration.

Returns:
  Started system map

Example:
  (start!)
sourceraw docstring

stop!clj

(stop!)

Stop the running system.

Returns: nil

Example: (stop!)

Stop the running system.

Returns:
  nil

Example:
  (stop!)
sourceraw docstring

swap-handler!clj

(swap-handler! new-handler)

Replace the live HTTP handler. Called by devtools for router rebuilds.

Replace the live HTTP handler. Called by devtools for router rebuilds.
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