Liking cljdoc? Tell your friends :D

hub.photo.service

Photo Service implementation details.

Photo Service implementation details.
raw docstring

get-infosclj

(get-infos race-ids)

Inputs: [race-ids :- [s/Str]] Returns: {s/Str ps/RaceInfo}

Multiget for bib mappings. Returns a map of race-id -> BibMapping.

Inputs: [race-ids :- [s/Str]]
Returns: {s/Str ps/RaceInfo}

Multiget for bib mappings. Returns a map of race-id -> BibMapping.
raw docstring

get-race-infoclj

If the race has info on albums and mappings registered, returns those settings.

If the race has info on albums and mappings registered, returns
those settings.
raw docstring

get-user-infoclj

If the user has privacy settings registered, returns those settings.

If the user has privacy settings registered, returns those
settings.
raw docstring

hydrate-usersclj

(hydrate-users photos)

Inputs: [photos :- [ps/Photo]] Returns: [ps/Photo]

Fills in the UserTag field on the tags in each photo.

Inputs: [photos :- [ps/Photo]]
Returns: [ps/Photo]

Fills in the UserTag field on the tags in each photo.
raw docstring

map-valuesclj

(map-values f m)

multigetclj

(multiget ids)

Inputs: [ids :- [ps/ID]] Returns: {ps/ID ps/Photo}

Same as the client's multiget, but handles hydrating the bib mappings.

Inputs: [ids :- [ps/ID]]
Returns: {ps/ID ps/Photo}

Same as the client's multiget, but handles hydrating the bib
mappings.
raw docstring

multiget->getclj

Takes a function of [id] -> {id item} and returns a function of id -> (s/maybe item).

Takes a function of [id] -> {id item} and returns a function of id
-> (s/maybe item).
raw docstring

multiget-user-infoclj

(multiget-user-info ids)

Inputs: [ids :- [ps/UserID]] Returns: {ps/UserID ps/UserTagDoc}

Inputs: [ids :- [ps/UserID]]
Returns: {ps/UserID ps/UserTagDoc}
raw docstring

photo-tableclj


privacy-tableclj


race-infoclj


runclj/smacro

(run & forms)

Run a command on the configured database.

Run a command on the configured database.
raw docstring

run-photoclj/smacro

(run-photo & forms)

Run a command on the photo table.

Run a command on the photo table.
raw docstring

set-user-info!clj

(set-user-info! user-id opts)

Inputs: [user-id :- ps/UserID opts :- {(s/optional-key :privacy-level) ps/Privacy, (s/optional-key :facebook-id) s/Str}] Returns: ps/UserTagDoc

Sets the user info fields.

Inputs: [user-id :- ps/UserID opts :- {(s/optional-key :privacy-level) ps/Privacy, (s/optional-key :facebook-id) s/Str}]
Returns: ps/UserTagDoc

Sets the user info fields.
raw docstring

tag-facebook-photos!clj

(tag-facebook-photos! photos)
(tag-facebook-photos! photos pre-hydrated?)

Inputs: ([photos :- [ps/Photo]] [photos :- [ps/Photo] pre-hydrated? :- s/Bool]) Returns: [{:success s/Bool}]

Tags all users in all photos on facebook. Accepts a sequence of photos, unhydrated by default. Optionally you can supply true as the second param to signal that they're already hydrated.

Inputs: ([photos :- [ps/Photo]] [photos :- [ps/Photo] pre-hydrated? :- s/Bool])
Returns: [{:success s/Bool}]

Tags all users in all photos on facebook. Accepts a sequence of
photos, unhydrated by default. Optionally you can supply `true` as
the second param to signal that they're already hydrated.
raw docstring

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

× close