web

package
v0.12.8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrorCodeBadUploadFileSize = 1300000
	ErrorCodeUnknownImageType  = 1300001
)

Variables

View Source
var (
	ErrorNotAnHEICImage = errors.New("not an HEIC image")
)

Functions

func BadRequestError

func BadRequestError(c echo.Context, message string) error

func BadRequestErrorWithCode

func BadRequestErrorWithCode(c echo.Context, errCode int, message string) error

func Error

func Error(c echo.Context, message string) error

func ErrorWithCode

func ErrorWithCode(c echo.Context, errCode int, message string) error

func OK

func OK(c echo.Context) error

func UploadImageToAzureBlob

func UploadImageToAzureBlob(c echo.Context, bs *azure.BlobService, azureContainer string, formName string, maxFileSize int64) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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