failure

package
v0.0.0-...-cf015e3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFileNotExists is an error when image does not exist on storage
	ErrFileNotExists = errors.New("File does not exist")

	// ErrKeyNotExists is an error when image does not exist on storage
	ErrKeyNotExists = errors.New("Key does not exist")

	// ErrQuality is an error when the quality requested is higher than expected
	ErrQuality = errors.New("Quality should be <= 100")

	// ErrUnprocessable is an error when parameters are missing
	ErrUnprocessable = errors.New("Unprocessable request, missing parameters")

	// ErrFileNotModified is an error when file is not modified
	ErrFileNotModified = errors.New("File not modified")
)

Functions

func Handle

func Handle(h Handler) gin.HandlerFunc

Types

type Handler

type Handler func(*gin.Context) error

Jump to

Keyboard shortcuts

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