Protocols for leaven components
Protocols for leaven components
Allows a component to implement a status function, which may just have side effects (like logging).
Allows a component to implement a status function, which may just have side effects (like logging).
(status component)
Allow a component to be queried for status.
Allow a component to be queried for status.
(queryable? x)
Predicate for testing whether x
satisfies the Queryable protocol.
Predicate for testing whether `x` satisfies the Queryable protocol.
Basic lifecycle for a component.
Basic lifecycle for a component.
(start component)
Start a component. Returns an updated component.
Start a component. Returns an updated component.
(startable? x)
Predicate for testing whether x
satisfies the Startable protocol.
Predicate for testing whether `x` satisfies the Startable protocol.
(stop component)
Stop a component. Returns an updated component.
Stop a component. Returns an updated component.
(stoppable? x)
Predicate for testing whether x
satisfies the Stoppable protocol.
Predicate for testing whether `x` satisfies the Stoppable protocol.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close