Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = dep.Name("image", "resizer") Task = task.Of(Name, ResizeImage) )
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { InputPath string `json:"inputPath" validate:"required,file"` OutputPath string `json:"outputPath" validate:"required,file"` OutMime string `json:"outMime" validate:"required,oneof=jpeg jpg png"` NewWidth int `json:"newWidth" validate:"gt=0"` NewHeight int `json:"newHeight" validate:"gt=0"` }
Click to show internal directories.
Click to hide internal directories.