Liking cljdoc? Tell your friends :D

kekkonen.core


+default-options+clj


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
raw docstring

any-type-resolverclj

(any-type-resolver meta)

Inputs: [meta]

Inputs: [meta]
raw 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
raw 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.
raw docstring

coerce!clj

(coerce! schema matcher value in type)

coercionclj

(coercion data)

collectclj

(collect collector type-resolver)

Inputs: [collector type-resolver]

Inputs: [collector type-resolver]
raw docstring

Collectorcljprotocol

-collectclj

(-collect this type-resolver)

Contextclj

raw docstring

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
raw docstring

context-dissocclj

(context-dissoc from-kws)

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

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

default-type-resolverclj


dispatchclj

(dispatch dispatcher mode action context)

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.
raw docstring

dispatcherclj

(dispatcher options)

Inputs: [options :- Options] Returns: Dispatcher

Creates a Dispatcher

Inputs: [options :- Options]
Returns: Dispatcher

Creates a Dispatcher
raw docstring

Functionclj

raw docstring

get-dispatcherclj

(get-dispatcher context)

Inputs: [context :- Context]

Inputs: [context :- Context]
raw docstring

get-handlerclj

(get-handler context)

Inputs: [context :- Context]

Inputs: [context :- Context]
raw docstring

handlerclj

(handler meta)
(handler meta f)

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

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

Handlerclj

raw docstring

handler?clj

(handler? x)

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
raw docstring

input-coerce!clj

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

interceptorclj

(interceptor interceptor-or-a-function)

InterceptorLikeclj

raw docstring

interceptorsclj

(interceptors data)

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.
raw docstring

KeywordMapclj

raw docstring

namespaceclj

(namespace meta)

Inputs: [meta :- KeywordMap]

Inputs: [meta :- KeywordMap]
raw docstring

Optionsclj

raw docstring

public-handlerclj

(public-handler handler)

Inputs: [handler :- Handler]

Inputs: [handler :- Handler]
raw 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
raw 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->
raw 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->
raw docstring

stringify-schemaclj

(stringify-schema schema)

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.
raw docstring

type-resolverclj

(type-resolver & types)

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

Inputs: [& types :- [s/Keyword]]
raw 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.
raw docstring

with-contextclj

(with-context dispatcher context)

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

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

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

× close