Liking cljdoc? Tell your friends :D

fitter

System component management library for Clojure.

Clojars Project (beta)

Status

  • [x] Start/stop system of components.
  • [x] Mount running instances.
  • [x] Suspend/resume components.
  • [x] Parallel start/stop.

Terminology

  • instance
    • something useful instantiated :-)
  • component
    • describe how to initialize/destroy instance of something.
  • registry
    • map of keys and components
  • system
    • collection of dependent component instances.

Overview

  • Components are just functions or maps with ::component/start /::component/stop! keys.
  • Component start function receives system map with keys known in component registry. This map supports get operations only.
  • The registry is a map of components where keys are unique and known in the system context. These keys are referred in component/start function argument.
  • Dependencies are dynamic and built when component access system key in its start function.
  • System state instance holds running component instances and used to start, stop and restart registered components.

Examples

Can you improve this documentation? These fine people already did:
Sergey Trofimov & stojure
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close