Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyURL = "url" KeyMethod = "method" KeyWidth = "width" KeyHeight = "height" KeyFormat = "format" KeyQuality = "quality" MethodContain = "contain" MethodCover = "cover" MethodDefault = MethodContain FormatJPEG = "jpeg" FormatPNG = "png" FormatGIF = "gif" FormatDefault = FormatJPEG QualityMax = 100 QualityMin = 0 QualityDefault = QualityMin )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
func (Input) ValidateFormatAndQuality ¶
func (Input) ValidateMethod ¶
func (Input) ValidateSize ¶
type InvalidFormatError ¶
type InvalidFormatError struct {
Format string
}
func NewInvalidFormatError ¶
func NewInvalidFormatError(format string) InvalidFormatError
func (InvalidFormatError) Error ¶
func (err InvalidFormatError) Error() string
type InvalidHostError ¶
type InvalidHostError struct {
Host string
}
func NewInvalidHostError ¶
func NewInvalidHostError(host string) InvalidHostError
func (InvalidHostError) Error ¶
func (err InvalidHostError) Error() string
type InvalidMethodError ¶
type InvalidMethodError struct {
Method string
}
func NewInvalidMethodError ¶
func NewInvalidMethodError(method string) InvalidMethodError
func (InvalidMethodError) Error ¶
func (err InvalidMethodError) Error() string
type InvalidQualityError ¶
type InvalidQualityError struct {
Quality int
}
func NewInvalidQualityError ¶
func NewInvalidQualityError(quality int) InvalidQualityError
func (InvalidQualityError) Error ¶
func (err InvalidQualityError) Error() string
type InvalidSchemeError ¶
type InvalidSchemeError struct {
Scheme string
}
func NewInvalidSchemeError ¶
func NewInvalidSchemeError(scheme string) InvalidSchemeError
func (InvalidSchemeError) Error ¶
func (err InvalidSchemeError) Error() string
type InvalidSizeError ¶
func NewInvalidSizeError ¶
func NewInvalidSizeError(width, height int) InvalidSizeError
func (InvalidSizeError) Error ¶
func (err InvalidSizeError) Error() string
Click to show internal directories.
Click to hide internal directories.