requests

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 10 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
	// The Identifier from the requested URL
	Identifier 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