middleware

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResponseError      = "error"
	ResponseData       = "response"
	WebHTTPApiError    = "web_http_api_error"
	WebHTTPApiResponse = "web_http_api_response"

	RequestIDName = "requestID"
)

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx *gin.Context, sub string)

func RequestID

func RequestID(logger logx.Logger) gin.HandlerFunc

func Response

func Response() gin.HandlerFunc

Response handle response

func WithContextLogger

func WithContextLogger(ctx *gin.Context) logx.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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