reitit.trie
Matcher
protocol
depth
(depth this)
protocol
length
(length this)
protocol
match
(match this i max path)
protocol
view
(view this)
protocol
TrieCompiler
protocol
-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)
clojure-trie-compiler
(clojure-trie-compiler)
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
.
compiler
(compiler)
Returns a default TrieCompiler
.
conflicting-parts?
(conflicting-parts? parts1 parts2)
conflicting-paths?
(conflicting-paths? path1 path2 opts)
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.
java-trie-compiler
(java-trie-compiler)
join-path
(join-path xs)
normalize
(normalize s opts)
path-matcher
(path-matcher compiled-trie)
(path-matcher compiled-trie compiler)
Returns a function of path -> Match
from a compiled trie.
pretty
(pretty compiled-trie)
(pretty compiled-trie compiler)
Returns a simplified EDN structure of a compiled trie for printing purposes.
record-parameters
Memoized function to transform parameters into runtime generated Record.
split-path
(split-path s {:keys [syntax], :or {syntax #{:colon :bracket}}})
wild?
(wild? x)