requests

package
v1.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	// Indicates which image processor to use
	Processor 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