Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetDownloadAndCropService ¶
func (app *App) GetDownloadAndCropService() *DownloadAndCropImageUseCase
type Config ¶
func ConfitaConfigLoader ¶
type ConfitaConfig ¶
type ConfitaConfig struct {
Port int `config:"jackal_port"`
FetchTimeout int `config:"jackal_fetchtimeout"`
}
func (*ConfitaConfig) ToConfig ¶
func (cfg *ConfitaConfig) ToConfig() *Config
type DownloadAndCropImageUseCase ¶
type DownloadAndCropImageUseCase struct {
// contains filtered or unexported fields
}
func NewDownloadAndCropImageUseCase ¶
func NewDownloadAndCropImageUseCase(imageProcessingService interfaces.IImageProcessingService, fetchService interfaces.IFetchService) *DownloadAndCropImageUseCase
type FetchService ¶
type FetchService struct {
// contains filtered or unexported fields
}
func NewFetchService ¶
func NewFetchService(timeoutMilliseconds int) *FetchService
func (*FetchService) GetBodyFromUrl ¶
func (service *FetchService) GetBodyFromUrl(url string) ([]byte, error)
type ImageProcessingService ¶
type ImageProcessingService struct{}
func NewImageProcessingService ¶
func NewImageProcessingService() *ImageProcessingService
func (*ImageProcessingService) CropCentered ¶
func (service *ImageProcessingService) CropCentered(content []byte, width int, height int, cropType interfaces.CropType) ([]byte, string, error)
Click to show internal directories.
Click to hide internal directories.