middleware

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware(cfg *models.Config) echo.MiddlewareFunc

func RecoverWithConnectionEvict added in v1.7.0

func RecoverWithConnectionEvict(cmRef **database.ConnectionManager) echo.MiddlewareFunc

RecoverWithConnectionEvict converts panics into HTTP 500 responses and evicts the request-scoped project DB from ConnectionManager so the next request opens a fresh driver (critical after Turso/libsql handle corruption).

cmRef is populated after GraphQLServer init; until then eviction is skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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