requests

package
v0.0.0-...-499b85e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL