Liking cljdoc? Tell your friends :D

kekkonen.core


+default-options+clj

source

all-handlersclj

(all-handlers dispatcher prefix)

Inputs: [dispatcher :- Dispatcher prefix :- (s/maybe s/Keyword)] Returns: [Handler]

Returns all handlers filtered by namespace

Inputs: [dispatcher :- Dispatcher prefix :- (s/maybe s/Keyword)]
Returns: [Handler]

Returns all handlers filtered by namespace
sourceraw docstring

any-type-resolverclj

(any-type-resolver meta)

Inputs: [meta]

Inputs: [meta]
sourceraw docstring

available-handlersclj

(available-handlers dispatcher prefix context)

Inputs: [dispatcher :- Dispatcher prefix :- (s/maybe s/Keyword) context :- Context] Returns: [Handler]

Returns all available handlers based on namespace and context

Inputs: [dispatcher :- Dispatcher prefix :- (s/maybe s/Keyword) context :- Context]
Returns: [Handler]

Returns all available handlers based on namespace and context
sourceraw docstring

checkclj

(check dispatcher action)
(check dispatcher action context)

Inputs: ([dispatcher :- Dispatcher action :- s/Keyword] [dispatcher :- Dispatcher action :- s/Keyword context :- Context])

Checks an action handler with the given context.

Inputs: ([dispatcher :- Dispatcher action :- s/Keyword] [dispatcher :- Dispatcher action :- s/Keyword context :- Context])

Checks an action handler with the given context.
sourceraw docstring

coerce!clj

(coerce! schema matcher value in type)
source

coercionclj

(coercion data)
source

collectclj

(collect collector type-resolver)

Inputs: [collector type-resolver]

Inputs: [collector type-resolver]
sourceraw docstring

Collectorcljprotocol

-collectclj

(-collect this type-resolver)
source

context-copyclj

(context-copy from to)

Inputs: [from :- [s/Any] to :- [s/Any]]

Returns a function that assocs in a value from to-kws path into from-kws in a context

Inputs: [from :- [s/Any] to :- [s/Any]]

Returns a function that assocs in a value from to-kws path into from-kws in a context
sourceraw docstring

context-dissocclj

(context-dissoc from-kws)

Inputs: [from-kws :- [s/Any]]

Inputs: [from-kws :- [s/Any]]
sourceraw docstring

default-type-resolverclj

source

dispatchclj

(dispatch dispatcher mode action context)
source

dispatch-handlersclj

(dispatch-handlers dispatcher mode prefix context)

Inputs: [dispatcher :- Dispatcher mode :- (s/enum :check :validate) prefix :- (s/maybe s/Keyword) context :- Context] Returns: {Handler s/Any}

Returns a map of action -> errors based on mode, namespace and context.

Inputs: [dispatcher :- Dispatcher mode :- (s/enum :check :validate) prefix :- (s/maybe s/Keyword) context :- Context]
Returns: {Handler s/Any}

Returns a map of action -> errors based on mode, namespace and context.
sourceraw docstring

dispatcherclj

(dispatcher options)

Inputs: [options :- Options] Returns: Dispatcher

Creates a Dispatcher

Inputs: [options :- Options]
Returns: Dispatcher

Creates a Dispatcher
sourceraw docstring

get-dispatcherclj

(get-dispatcher context)

Inputs: [context :- Context]

Inputs: [context :- Context]
sourceraw docstring

get-handlerclj

(get-handler context)

Inputs: [context :- Context]

Inputs: [context :- Context]
sourceraw docstring

handlerclj

(handler meta)
(handler meta f)

Inputs: ([meta :- KeywordMap] [meta :- KeywordMap f :- Function])

Inputs: ([meta :- KeywordMap] [meta :- KeywordMap f :- Function])
sourceraw docstring

handler?clj

(handler? x)
source

injectclj

(inject dispatcher handlers)

Inputs: [dispatcher :- Dispatcher handlers :- (s/constrained s/Any (complement nil?) (quote not-nil))]

Injects handlers into an existing Dispatcher

Inputs: [dispatcher :- Dispatcher handlers :- (s/constrained s/Any (complement nil?) (quote not-nil))]

Injects handlers into an existing Dispatcher
sourceraw docstring

input-coerce!clj

(input-coerce! context schema)
(input-coerce! context schema key->matcher)
source

interceptorclj

(interceptor interceptor-or-a-function)
source

InterceptorLikeclj

sourceraw docstring

interceptorsclj

(interceptors data)
source

invokeclj

(invoke dispatcher action)
(invoke dispatcher action context)

Inputs: ([dispatcher :- Dispatcher action :- s/Keyword] [dispatcher :- Dispatcher action :- s/Keyword context :- Context])

Invokes an action handler with the given context.

Inputs: ([dispatcher :- Dispatcher action :- s/Keyword] [dispatcher :- Dispatcher action :- s/Keyword context :- Context])

Invokes an action handler with the given context.
sourceraw docstring

KeywordMapclj

sourceraw docstring

namespaceclj

(namespace meta)

Inputs: [meta :- KeywordMap]

Inputs: [meta :- KeywordMap]
sourceraw docstring

public-handlerclj

(public-handler handler)

Inputs: [handler :- Handler]

Inputs: [handler :- Handler]
sourceraw docstring

some-handlerclj

(some-handler dispatcher action)

Inputs: [dispatcher action :- s/Keyword] Returns: (s/maybe Handler)

Returns a handler or nil

Inputs: [dispatcher action :- s/Keyword]
Returns: (s/maybe Handler)

Returns a handler or nil
sourceraw docstring

strict-map->Dispatcherclj

(strict-map->Dispatcher m4755 & [drop-extra-keys?__1260__auto__])

Factory function for class Dispatcher, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class Dispatcher, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->Namespaceclj

(strict-map->Namespace m4624 & [drop-extra-keys?__1260__auto__])

Factory function for class Namespace, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class Namespace, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

stringify-schemaclj

(stringify-schema schema)
source

transform-handlersclj

(transform-handlers dispatcher f)

Inputs: [dispatcher :- Dispatcher f :- Function]

Applies f to all handlers. If the call returns nil, the handler is removed.

Inputs: [dispatcher :- Dispatcher f :- Function]

Applies f to all handlers. If the call returns nil,
the handler is removed.
sourceraw docstring

type-resolverclj

(type-resolver & types)

Inputs: [& types :- [s/Keyword]]

Inputs: [& types :- [s/Keyword]]
sourceraw docstring

validateclj

(validate dispatcher action)
(validate dispatcher action context)

Inputs: ([dispatcher :- Dispatcher action :- s/Keyword] [dispatcher :- Dispatcher action :- s/Keyword context :- Context])

Checks if context is valid for the handler (without calling the body). Returns nil or throws an exception.

Inputs: ([dispatcher :- Dispatcher action :- s/Keyword] [dispatcher :- Dispatcher action :- s/Keyword context :- Context])

Checks if context is valid for the handler (without calling the body).
Returns nil or throws an exception.
sourceraw docstring

with-contextclj

(with-context dispatcher context)

Inputs: [dispatcher :- Dispatcher context :- Context]

Inputs: [dispatcher :- Dispatcher context :- Context]
sourceraw docstring

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

× close