Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultWidth defines the default width of a thumbnail DefaultWidth = 32 // DefaultHeight defines the default height of a thumbnail DefaultHeight = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThumbnailRequest ¶
type ThumbnailRequest struct {
// The file path of the source file
Filepath string
// The file name of the source file including the extension
Filename string
// The file extension
Extension string
// The requested width of the thumbnail
Width int32
// The requested height of the thumbnail
Height int32
// In case of a public share the public link token.
PublicLinkToken string
}
ThumbnailRequest combines all parameters provided when requesting a thumbnail
func ParseThumbnailRequest ¶
func ParseThumbnailRequest(r *http.Request) (*ThumbnailRequest, error)
ParseThumbnailRequest extracts all required parameters from a http request.
Click to show internal directories.
Click to hide internal directories.