Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct { Config *config.Config RawImageCache ImageCache ResizedImageCache ImageCache Logger Logger }
type ImageCache ¶
type ImagesService ¶
type ImagesService struct {
// contains filtered or unexported fields
}
func NewImagesService ¶
func NewImagesService(logger Logger, rawImageCache ImageCache, resizedImageCache ImageCache) *ImagesService
func (*ImagesService) DownloadFromURLAndSaveImageToStorage ¶
func (is *ImagesService) DownloadFromURLAndSaveImageToStorage(inp core.DownloadImageInput) (*core.Image, error)
func (*ImagesService) SaveResizedImageToStorage ¶
type ResizerService ¶
type ResizerService struct {
// contains filtered or unexported fields
}
func NewResizerService ¶
func NewResizerService( logger Logger, rawImageCache ImageCache, resizedImageCache ImageCache, imagesService Images, ) *ResizerService
func (*ResizerService) ResizeFromURL ¶
func (rs *ResizerService) ResizeFromURL(inp core.ResizeInput) (*os.File, error)
Click to show internal directories.
Click to hide internal directories.