Liking cljdoc? Tell your friends :D

ctim.domain.id


->idclj/s

(->id type id url-show-params)

Given a string ID, build an ID instance with provided URL parameters. Also ensures that the ID is encoded.

Given a string ID, build an ID instance with provided URL
parameters.  Also ensures that the ID is encoded.
raw docstring

CtiaIdcljs


factory:short-id+type->long-idclj/s

(factory:short-id+type->long-id url-params-fn)

Build a fn that takes an id-type and a short-id and returns a long-id

Build a fn that takes an id-type and a short-id and returns a long-id
raw docstring

factory:short-id->long-idclj/s

(factory:short-id->long-id type url-params-fn)

Build a fn that takes a short-id and returns a long-id

Build a fn that takes a short-id and returns a long-id
raw docstring

IDclj/s≠protocol

long-idclj/s

(long-id this)
(long-id this url-params)

Convert this record to a long ID string

Convert this record to a long ID string

short-idclj/s

(short-id this)

The short part of the ID

The short part of the ID

localizeclj/s

(localize this url-params)

Localize this ID

Localize this ID

long-id->idclj/s

(long-id->id long-id)

long-id-factoryclj/sdeprecated


long-id-of-type?clj/s

(long-id-of-type? expected-type)

Build a predicate fn that tests if URLs conform with the long-ID pattern

Build a predicate fn that tests if URLs conform with the long-ID
pattern
raw docstring

long-id-reclj/s


long-id?clj/s

(long-id? id)

Inputs: [id :- s/Str]

Make an educated guess if this is a long-form ID

Inputs: [id :- s/Str]

Make an educated guess if this is a long-form ID
raw docstring

make-long-id-strclj/s

(make-long-id-str {:keys [hostname short-id path-prefix port protocol type]
                   :as parts})

make-transient-idclj/s

(make-transient-id type)

short-id->idclj/s

(short-id->id type short-id {:keys [hostname path-prefix port protocol]})

short-id->long-idclj/s

(short-id->long-id short-id url-params-fn)

short-id-patternclj/s


short-id-reclj/s


short-id?clj/s

Make an educated guess if this is a short-form ID

Make an educated guess if this is a short-form ID
raw docstring

str->short-idclj/s

(str->short-id s)

Given an unknown ID string (presumably a user provided ID string, which may be a URL) parse the string and return just the short form ID.

Given an unknown ID string (presumably a user provided ID string,
which may be a URL) parse the string and return just the short form
ID.
raw docstring

transient-id-patternclj/s


transient-id-reclj/s


url-patternclj/s


url-reclj/s


uuid-patternclj/s


valid-short-id?clj/s

(valid-short-id? short-id)

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

× close