Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ImageTypeJpeg is type of Jpeg ImageTypeJpeg = "jpeg" // ImageTypeGif is type of Gif ImageTypeGif = "gif" // ImageTypePng is type of PNG ImageTypePng = "png" // ImageTypeBmp is type of BMP ImageTypeBmp = "bmp" // ImageTypeTiff is type of TIFF ImageTypeTiff = "tiff" )
Variables ¶
View Source
var ImageTypeList = []string{ImageTypeJpeg, ImageTypeGif, ImageTypePng, ImageTypeBmp, ImageTypeTiff}
ImageTypeList is list of image types
Functions ¶
This section is empty.
Types ¶
type ImageValidator ¶
type ImageValidator struct {
// contains filtered or unexported fields
}
ImageValidator struct
func NewImageValidator ¶
func NewImageValidator(ctx context.Context, imagetype []string, maxwidth, maxheight, maxfilesize int) *ImageValidator
NewImageValidator creates a new ImageValidator
Click to show internal directories.
Click to hide internal directories.