handler

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FormKeyStorageKey is form key of storage key
	FormKeyStorageKey = "key"
	// FormKeyWidth is form key of width
	FormKeyWidth = "w"
	// FormKeyHeight is form key of height
	FormKeyHeight = "h"
	// FormKeyQuality is form key of quality
	FormKeyQuality = "q"
	// FormKeyNonUseCache is form key of nonusecache
	FormKeyNonUseCache = "nonusecache"
	// FormKeyRotate is form key of round
	FormKeyRotate = "rotate"
	// FormKeyCrop is form key of crop
	FormKeyCrop = "crop"
	// FormKeyBrightness is form key of brightness
	FormKeyBrightness = "bri"
	// FormKeyContrast is form key of contrast
	FormKeyContrast = "cont"
	// FormKeyGamma is form key of gamma
	FormKeyGamma = "gam"
	// FormKeyUploadFile is form key of uploadfile
	FormKeyUploadFile = "uploadfile"
	// FormKeyPath is form key of path
	FormKeyPath = "path"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseHandler

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

BaseHandler struct

type ImageReductionHandler

type ImageReductionHandler struct {
	BaseHandler
}

ImageReductionHandler struct

func (ImageReductionHandler) Request

func (irh ImageReductionHandler) Request(c echo.Context) error

Request is get from storage

func (ImageReductionHandler) RequestFile added in v1.1.0

func (irh ImageReductionHandler) RequestFile(c echo.Context) error

RequestFile is get non image file from storage

func (ImageReductionHandler) RequestInfo added in v1.6.0

func (irh ImageReductionHandler) RequestInfo(c echo.Context) error

RequestInfo is get info from storage

func (ImageReductionHandler) RequestStreaming added in v1.5.0

func (irh ImageReductionHandler) RequestStreaming(c echo.Context) error

RequestStreaming is get non image file from storage by streaming

func (ImageReductionHandler) Upload

func (irh ImageReductionHandler) Upload(c echo.Context) error

Upload is to upload to storage

func (ImageReductionHandler) UploadFile added in v1.1.0

func (irh ImageReductionHandler) UploadFile(c echo.Context) error

UploadFile is to upload non image file to storage

type TokenHandler

type TokenHandler struct {
	BaseHandler
}

TokenHandler struct

func (TokenHandler) Request

func (th TokenHandler) Request(c echo.Context) error

Request is get from storage

Jump to

Keyboard shortcuts

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