handlers

package
v1.4.23 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package handlers provides the routes used by the `ims` binary.

Index

Constants

This section is empty.

Variables

View Source
var ErrFilenameTooShort = errors.New("filename too short")

ErrFilenameTooShort is returned when the filename referenced by the request is too short to be used with a provider.

Functions

func Image

func Image(timeout time.Duration) http.HandlerFunc

Image is the handler which loads the filename from the request, loads the file via the provider, and processes the image to re-encode it with caching headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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