Liking cljdoc? Tell your friends :D

locket.core


add-handlers!clj/s

(add-handlers! state-machine)

Adds all the state machine handlers for transitions

Adds all the state machine handlers for transitions
sourceraw docstring

ensure-path-fnclj/s

(ensure-path-fn state-machine)

Ensure the state-machine has a path-fn, by constructing it from the id if not provided.

Ensure the state-machine has a path-fn, by constructing it from the id if not provided.
sourceraw docstring

id->interceptor-keyclj/s

source

id->keyclj/s

(id->key k id)

Takes an (maybe namespaced) keyword and returns a new keyword, as follows e.g. :products -> :products/state :products/recommended -> :products.recommended/state

Takes an (maybe namespaced) keyword and returns a new keyword, as follows
e.g. :products -> :products/state
     :products/recommended -> :products.recommended/state
sourceraw docstring

id->state-keyclj/s

source

id->transitions-keyclj/s

source

interceptorclj/s

(interceptor state-machine)

Generic interceptor for state machine interactions. Calls path-fn on event-v of the event to find the path.

Generic interceptor for state machine interactions.
Calls path-fn on event-v of the event to find the path. 
sourceraw docstring

register-subscriptions!clj/s

(register-subscriptions! state-machine)

Registers a subscription for the current state of the state machine, as well as the currently available transitions.

Calls path-fn on the query-v of the subscription to find the path.

Registers a subscription for the current state of the state machine,
as well as the currently available transitions.

Calls path-fn on the query-v of the subscription to find the path.
sourceraw docstring

statesclj/s

(states state-machine)

Returns all the states of a state machine

Returns all the states of a state machine
sourceraw docstring

transitionsclj/s

(transitions state-machine)
(transitions state-machine state)

Returns all the transition events in a state machine. If a state is provided as a second argument, returns all the transitions from that state

Returns all the transition events in a state machine.
If a state is provided as a second argument, returns all the transitions from that state
sourceraw docstring

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

× close