server

package
v0.0.0-...-bcb87c1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const EtagBusterPrefix = "v1"

EtagBusterPrefix should be modified when existing Etag headers should be invalidated. This can happen for example when some related header has changed which would change how the response body would otherwise be treated. For example, this value was added when 'Content-Type' changed from 'text/calendar' to 'text/calendar; utf-8'. Be careful changing this, since it invalidates all existing cached responses.

Variables

View Source
var ErrFallback = errors.New("fallback")

Functions

func ApiKeyMiddlewares

func ApiKeyMiddlewares(key string) ([]echo.MiddlewareFunc, error)

func FallbackMiddleware

func FallbackMiddleware(ag *appglobals.AppGlobals) echo.MiddlewareFunc

func Register

func Register(_ context.Context, e *echo.Echo, ag *appglobals.AppGlobals) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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