imgprocessing

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImgProcessingHostMissing = sdkcm.CustomError("ErrImgProcessingHostMissing", "Img Processing service host is missing")
)

Functions

func New

func New(prefix ...string) *imgProcessing

Types

type ImgProcessing

type ImgProcessing interface {
	// call img processing service to resize img and upload to s3
	Resize(file *multipart.FileHeader, folder string, longEdge int, quality int) (*sdkcm.Image, error)

	ResizeFile(filePath string, folder string, longEdge int, quality int) (*sdkcm.Image, error)
}

type Response

type Response struct {
	sdkcm.AppError
	Data *sdkcm.Image `json:"data"`
}

Jump to

Keyboard shortcuts

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