middlewares

package
v0.0.0-...-9336d3e Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORSMiddleware is a middleware to add cors headers

func ClientCheckMiddleware

func ClientCheckMiddleware() gin.HandlerFunc

ClientCheckMiddleware is a middleware to verify the client ID Note: client ID is passed in the header

func GinContextToContextMiddleware

func GinContextToContextMiddleware() gin.HandlerFunc

GinContextToContextMiddleware is a middleware to add gin context in context

func Logger

func Logger(logger logrus.FieldLogger, notLogged ...string) gin.HandlerFunc

Logger is the logrus logger handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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