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.
Click to show internal directories.
Click to hide internal directories.