(->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.
(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
(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
(localize this url-params)
Localize this ID
Localize this ID
(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-id this)
The short part of the ID
The short part of the ID
(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
(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
(make-long-id-str {:keys [hostname short-id path-prefix port protocol type]
:as parts})
(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)
Make an educated guess if this is a short-form ID
Make an educated guess if this is a short-form ID
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close