middleware

package
v0.0.0-...-def24e1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TraceIdKey = "trace_id"

Variables

This section is empty.

Functions

func GenerateTraceId

func GenerateTraceId() string

func GetTraceId

func GetTraceId() gin.HandlerFunc

func RequestResponseLogger

func RequestResponseLogger() gin.HandlerFunc

func ResponseMiddleware

func ResponseMiddleware() gin.HandlerFunc

Types

type EApiResponse

type EApiResponse struct {
	Message string          `json:"message"`
	Code    int             `json:"code"`
	Result  json.RawMessage `json:"result"`
	TraceId string          `json:"trace_id"`
	Version string          `json:"version"`
}

Jump to

Keyboard shortcuts

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