middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditBody

func AuditBody(dbSession *cdb.Session) echo.MiddlewareFunc

func AuditLog

func AuditLog(dbSession *cdb.Session) echo.MiddlewareFunc

func CORS

func CORS() echo.MiddlewareFunc

CORS configures echo to accept requests from scripts from domains different than the API will be served from

func Logger

func Logger() echo.MiddlewareFunc

Logger returns a middleware that logs HTTP requests

func NotFoundHandler

func NotFoundHandler(cfg *config.Config) echo.MiddlewareFunc

NotFoundHandler returns a middleware that returns a 404 status code for unmatched routes

func Secure

func Secure() echo.MiddlewareFunc

Secure middleware configures echo with secure headers

Types

type ResponseError

type ResponseError struct {
	Source  string `json:"source"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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