Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Extensions = map[string]string{
"image/jpeg": "jpg",
"image/png": "png",
"image/bmp": "bmp",
"image/gif": "gif",
}
View Source
var HeaderKeys = []string{
"Age",
"Content-Type",
"Last-Modified",
"Date",
"Etag",
}
Functions ¶
This section is empty.
Types ¶
type ImageFile ¶
type ImageFile struct { Source []byte Processed []byte Key string Headers map[string]string Filepath string Storage gostorages.Storage }
func FromStorage ¶
func FromStorage(storage gostorages.Storage, filepath string) (*ImageFile, error)
func (*ImageFile) ContentType ¶
func (*ImageFile) FilenameExt ¶
Click to show internal directories.
Click to hide internal directories.