Skip to main content

reitit.trie

Matcher​

protocol

source

depth​

(depth this)

protocol

length​

(length this)

protocol

match​

(match this i max path)

protocol

view​

(view this)

protocol

TrieCompiler​

protocol

source

-path-matcher​

(-path-matcher this matcher)

protocol

-pretty​

(-pretty this matcher)

protocol

catch-all-matcher​

(catch-all-matcher this key params data)

protocol

data-matcher​

(data-matcher this params data)

protocol

linear-matcher​

(linear-matcher this matchers ordered?)

protocol

static-matcher​

(static-matcher this path matcher)

protocol

wild-matcher​

(wild-matcher this key end matcher)

protocol

catch-all?​

(catch-all? x)

source

clojure-trie-compiler​

(clojure-trie-compiler)

source

compile​

(compile options)
(compile options compiler)
(compile {:keys [data params children wilds catch-all], :or {params {}}} compiler cp)

Returns a compiled trie, to be used with pretty or path-matcher.

source

compiler​

(compiler)

Returns a default TrieCompiler.

source

conflicting-parts?​

(conflicting-parts? parts1 parts2)

source

conflicting-paths?​

(conflicting-paths? path1 path2 opts)

source

insert​

(insert routes)
(insert node routes)
(insert node path data)
("insert[node path data {::keys [parameters] :or {parameters map-parameters} :as opts}]")

Returns a trie with routes added to it.

source

java-trie-compiler​

(java-trie-compiler)

source

join-path​

(join-path xs)

source

normalize​

(normalize s opts)

source

path-matcher​

(path-matcher compiled-trie)
(path-matcher compiled-trie compiler)

Returns a function of path -> Match from a compiled trie.

source

pretty​

(pretty compiled-trie)
(pretty compiled-trie compiler)

Returns a simplified EDN structure of a compiled trie for printing purposes.

source

record-parameters​

Memoized function to transform parameters into runtime generated Record.

source

split-path​

(split-path s {:keys [syntax], :or {syntax #{:colon :bracket}}})

source

wild?​

(wild? x)

source