Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageBackend ¶
type ImageBackend interface { AutoRotate(file *entity.ProcessingFile) error Resize(file *entity.ProcessingFile, maxLength int) error Convert(file *entity.ProcessingFile, newMimeType string) error }
func NewImageBackend ¶
func NewImageBackend() ImageBackend
type Processing ¶
type Processing struct { Image ImageBackend Video VideoBackend }
type VideoBackend ¶
type VideoBackend interface { Transcode(file *entity.ProcessingFile, maxLength int) error Convert(file *entity.ProcessingFile, newMimeType string) error }
func NewVideoBackend ¶
func NewVideoBackend() VideoBackend
Click to show internal directories.
Click to hide internal directories.