web

package
v0.0.0-...-1abe31c Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AppConfigKey = "AppConfig"
View Source
const JobLimiterKey = "JobLimiter"

Variables

This section is empty.

Functions

func BindAndValidate

func BindAndValidate(ctx echo.Context, i interface{}) error

Ease of use method, when binding & validation is needed.

func HandleETag

func HandleETag(ctx echo.Context, currentETag string) bool

Handle ETag stuff Returns (need new content)

func Run

func Run(appConfig config.Config) error

func SetCacheHeader

func SetCacheHeader(ctx echo.Context, appConfig config.Config)

Types

type ImageQuery

type ImageQuery struct {
	Preset string `query:"preset"`
	Format string `query:"format"`
}

type Validator

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

func (Validator) New

func (v Validator) New() Validator

func (*Validator) Validate

func (cv *Validator) Validate(i interface{}) error

Jump to

Keyboard shortcuts

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