Documentation ¶
Overview ¶
Package usecases is the bridge between the domain and the interfaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashDecoder ¶
type HashDecoder interface {
Decode(string) (ImageDescription, error)
}
HashDecoder decodes a hash to an ImageDescription
type ImageDescription ¶
ImageDescription describes an image extracted from the hash
type ImageFetcher ¶
ImageFetcher fetches an image from the given url.URL
type ImageResizer ¶
ImageResizer resizes an image based on w and h
type Logger ¶
type Logger interface {
Log(format string, args ...interface{})
}
Logger abstracts away the loggin
type ThumbnailInteractor ¶
type ThumbnailInteractor struct { ThumbnailRepository domain.ThumbnailRepository ImageResizer ImageResizer ImageFetcher ImageFetcher HashDecoder HashDecoder Logger Logger }
ThumbnailInteractor contains all players involved in creating thumbnails
Click to show internal directories.
Click to hide internal directories.