gin

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGin

func FromGin(c *gin.Context) *zap.Logger

FromGin returns the global logger with x-reqid field when the request carries an id.

func GinZapFields

func GinZapFields(c *gin.Context) []zap.Field

GinZapFields returns zap fields for HTTP handlers (x-reqid, method, path).

func IncomingReqID

func IncomingReqID(c *gin.Context) string

IncomingReqID reads the client-provided X-Reqid header.

func ReqIDFromGin

func ReqIDFromGin(c *gin.Context) string

ReqIDFromGin returns request id from Gin context or request context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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