middleware

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxKeyReqMeta = "req_metadata"
)

Keys to store in Gin context

Variables

This section is empty.

Functions

func CaptureRequestMetaData

func CaptureRequestMetaData() gin.HandlerFunc

Capture the request meta data

func CustomLogger

func CustomLogger() gin.HandlerFunc

Custom logger

Types

type RequestMetaData

type RequestMetaData struct {
	TimeStamp     time.Time
	ClientIP      string
	UserAgent     string
	Method        string
	Path          string
	ContentLength int64
}

Request meta data

Jump to

Keyboard shortcuts

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