imagepreviewer

package
v0.0.0-...-067dddc Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App represents the main application logic for the image previewer. It includes caching and resizing functionalities.

func NewApp

func NewApp(cache lru.ICache, resizer *resizing.Resizer) *App

NewApp creates a new instance of the App with specified caching and resizing configurations.

func (*App) PreviewImage

func (a *App) PreviewImage(w http.ResponseWriter, r *http.Request)

PreviewImage handles the preview image request. It takes a URL parameter for the image and two additional parameters for the width and height of the preview.

Jump to

Keyboard shortcuts

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