handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCombinedHandler

func GetCombinedHandler(cfg *config.Config, s3Client *storage.S3Client) fiber.Handler

func GetCropHandler

func GetCropHandler(cfg *config.Config, s3Client *storage.S3Client) fiber.Handler

func GetHealthHandler

func GetHealthHandler(cfg *config.Config, s3Client *storage.S3Client) fiber.Handler

func GetImageSizerHandler

func GetImageSizerHandler(cfg *config.Config, s3Client *storage.S3Client, paramsParser ParamsParser) fiber.Handler

func GetPingHandler

func GetPingHandler() fiber.Handler

func GetReadinessHandler

func GetReadinessHandler(cfg *config.Config, s3Client *storage.S3Client) fiber.Handler

func GetResizeHandler

func GetResizeHandler(cfg *config.Config, s3Client *storage.S3Client) fiber.Handler

Types

type ParamsParser

type ParamsParser func(c *fiber.Ctx, cfg *config.Config) SizerParams

type ServerStatus

type ServerStatus struct {
	Status    string `json:"status"`
	Timestamp string `json:"timestamp"`
	S3Status  string `json:"s3_status"`
}

type SizerParams

type SizerParams struct {
	Width   int
	Height  int
	Quality int
	BgColor string
	Density float64
	Scale   float64
	Crop    image.Rectangle
}

func (SizerParams) String

func (p SizerParams) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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