http

package
v0.0.0-...-a7f2a9d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORSMiddleware handles Cross-Origin Resource Sharing

func LoggingMiddleware

func LoggingMiddleware(logger zerolog.Logger) gin.HandlerFunc

LoggingMiddleware logs HTTP requests

func RecoveryMiddleware

func RecoveryMiddleware(logger zerolog.Logger) gin.HandlerFunc

RecoveryMiddleware handles panics and returns 500 errors

func RequestIDMiddleware

func RequestIDMiddleware() gin.HandlerFunc

RequestIDMiddleware adds a unique request ID to each request

func SetupRouter

func SetupRouter(notesHandler *notes.Handler, logger zerolog.Logger) *gin.Engine

SetupRouter configures and returns the Gin router

Types

This section is empty.

Jump to

Keyboard shortcuts

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