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

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

IDclj/sprotocol

localizeclj/s

(localize this url-params)

Localize this ID

Localize this ID

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
source

long-id->idclj/s

(long-id->id long-id)
source

long-id-factoryclj/sdeprecated

source

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

long-id-reclj/s

source

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

make-long-id-strclj/s

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

make-transient-idclj/s

(make-transient-id type)
source

short-id->idclj/s

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

short-id->long-idclj/s

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

Inputs: [short-id :- (s/maybe s/Str) url-params-fn :- (s/maybe (s/=> #:s{Keyword s/Any}))] Returns: (s/maybe s/Str)

Inputs: [short-id :- (s/maybe s/Str) url-params-fn :- (s/maybe (s/=> #:s{Keyword s/Any}))]
Returns: (s/maybe s/Str)
sourceraw docstring

short-id-patternclj/s

source

short-id-reclj/s

source

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

transient-id-patternclj/s

source

transient-id-reclj/s

source

url-patternclj/s

source

url-reclj/s

source

uuid-patternclj/s

source

valid-short-id?clj/s

(valid-short-id? short-id)
source

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

× close