img

package
v0.0.0-...-ecd0fb0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSize   error = errors.New("file must not be greater than 5MB")
	ErrNoFiles       error = errors.New("at least one file is required")
	ErrNoRabbitMQSvc error = errors.New("rabbitMQ service is required")
	ErrNoSigma       error = errors.New("sigma is required and must be greater than 0")
)

Functions

This section is empty.

Types

type NewServiceOpts

type NewServiceOpts struct {
	RabbitmqSvc *rabbitmq.Service
}

func (NewServiceOpts) Validate

func (opts NewServiceOpts) Validate() error

type ProcessResponse

type ProcessResponse struct {
	Blur       *string `json:"blur"`
	CropAnchor *string `json:"crop_anchor"`
	File       string  `json:"file"`
	Grayscale  *string `json:"grayscale"`
	Invert     *string `json:"invert"`
	Resize     *string `json:"resize"`
}

type ProcessedRequest

type ProcessedRequest struct {
	File string `json:"file"`
}

type Service

type Service struct {
	RabbitmqService *rabbitmq.Service
}

func NewService

func NewService(opts NewServiceOpts) (*Service, error)

func (*Service) Process

func (svc *Service) Process() error

Jump to

Keyboard shortcuts

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