thumbnails

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultWidth is the default width when the HTTP request is missing the width
	DefaultWidth int = 32
	// DefaultHeight is the default height when the HTTP request is missing the height
	DefaultHeight int = 32
)

Variables

This section is empty.

Functions

func ContextMustGetResource

func ContextMustGetResource(ctx context.Context) *provider.ResourceInfo

ContextMustGetResource gets a ResourceInfo from the context. Panics if not available.

func ContextSetResource

func ContextSetResource(ctx context.Context, res *provider.ResourceInfo) context.Context

ContextSetResource adds a ResourceInfo into the context

func New

func New(conf map[string]interface{}, log *zerolog.Logger) (global.Service, error)

New creates a new thumbnails HTTP service

Types

This section is empty.

Directories

Path Synopsis
lru

Jump to

Keyboard shortcuts

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