middlewares

package
v0.0.0-...-5c27dc6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func DefaultStructuredLogger

func DefaultStructuredLogger() gin.HandlerFunc

DefaultStructuredLogger logs a gin HTTP request in JSON format. Uses the default logger from rs/zerolog.

func StructuredLogger

func StructuredLogger(logger *zerolog.Logger) gin.HandlerFunc

StructuredLogger logs a gin HTTP request in JSON format. Allows to set the logger for testing purposes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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