thumbnail

package
v0.0.0-...-675223e Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 6 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 Request

type Request struct {
	Filepath      string
	Filetype      string
	Etag          string
	Width         int
	Height        int
	Authorization string
}

Request combines all parameters provided when requesting a thumbnail

func NewRequest

func NewRequest(r *http.Request) (Request, error)

NewRequest 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