Liking cljdoc? Tell your friends :D

burningswell.services.photos


content-type-extensionclj

(content-type-extension content-type)

Returns the filename extension from content-type.

Returns the filename extension from `content-type`.
raw docstring

create-profile-photo!clj

(create-profile-photo! {:keys [db] :as service} user photo & [opts])

Create the profile photo of user.

Create the profile `photo` of `user`.
raw docstring

decode-photoclj

(decode-photo service {:keys [id source-url] :as photo} response)

Decode the download response of photo.

Decode the download `response` of `photo`.
raw docstring

download-photoclj

(download-photo service {:keys [id source-url] :as photo})

Download the original image of photo.

Download the original image of `photo`.
raw docstring

import!clj

(import! service photo & [opts])

Create the photo.

Create the `photo`.
raw docstring

photo-storage-keyclj

(photo-storage-key service photo content-type)

Return the storage key for photo and content-type.

Return the storage key for `photo` and `content-type`.
raw docstring

photo-storage-urlclj

(photo-storage-url service photo content-type)

Return the storage url for photo, and content-type.

Return the storage url for `photo`, and `content-type`.
raw docstring

save-photo-to-dbclj

(save-photo-to-db {:keys [db] :as service} photo)

Save the image to the database.

Save the `image` to the database.
raw docstring

save-photo-to-storageclj

(save-photo-to-storage service photo)

Upload the image.

Upload the `image`.
raw docstring

serviceclj

(service & [opts])

Returns a photo service component.

Returns a photo service component.
raw docstring

Servicecljprotocol

-import!clj

(-import! service photo opts)

user-agentclj

The user agent string.

The user agent string.
raw docstring

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

× close