(build-context component-list)
Params:
component-list
- vector of ::component
Returns:atom
- as system context if success.# build system context using given component-list. Params: * `component-list` - vector of ::component Returns: * `atom` - as system context if success. * `exception - if component-list is invalid or other errors.
(create! *ctx new-component)
Returns:
r/success-types
- if success.r/error-types
- if failure.# create new component in the system context. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(delete! *ctx id-kwd)
Returns:
r/success-types
- if success.r/error-types
- if failure.# delete component from system context. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(get-component *ctx id-kwd)
# return component state from system context using its id
(get-component-value ctx id-kwd)
# return component value from system context value using its id
(list-all-ids *ctx)
# get list of ids for all registered components. Returns: * vector of keywords.
(set-config! *ctx id-kwd new-config)
# set new config for component. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(start! *ctx id-kwd)
(start! *ctx id-kwd start-fn stop-fn)
Returns:
r/success-types
- if success.r/error-types
- if failure.# start component using given id and (optionally) start/stop functions. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(start-all *ctx)
Returns:
r/success-types
- if success.r/error-types
- if failure.# start all registered components, which are not started yet. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(start-some *ctx component-list)
Params:
component-list
- vector of keywords with component's id.
Returns:r/success-types
- if success.r/error-types
- if failure.# start some of registered components, which are not started yet. Params: * `component-list` - vector of keywords with component's id. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(started-ids *ctx)
# get list of ids for all started components. Returns: * vector of keywords.
(stop! *ctx id-kwd)
# stop component using given id. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(stop-all *ctx)
Returns:
r/success-types
- if success.r/error-types
- if failure.# stop all registered components, which are not stopped yet. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(stop-some *ctx component-list)
Params:
component-list
- vector of keywords with component's id.
Returns:r/success-types
- if success.r/error-types
- if failure.# stop some of registered components, which are not stopped yet. Params: * `component-list` - vector of keywords with component's id. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
(stopped-ids *ctx)
# get list of ids for all stopped components. Returns: * vector of keywords.
(update! *ctx new-component-state)
Returns:
r/success-types
- if success.r/error-types
- if failure.# update component's state in the system context. Returns: * `r/success-types` - if success. * `r/error-types` - if failure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close