Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Images ¶
type Images interface { ChecksumDataURL(string) (string, error) StoreDataURL(string) error PathsFor(checksum string) (*model.OfferImagePaths, error) HasChecksum(checksum string) (bool, error) GetOriginal(checksum string) (image.Image, error) }
Images is a wrapper around imstor.Storage that offers a type safe way to get paths for image sizes specific to this application. It also prepends the `images/` to all the returned paths.
Click to show internal directories.
Click to hide internal directories.