middleware

package
v0.0.0-...-09b90b3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonLogger

func JsonLogger() gin.HandlerFunc

func JwtChecker

func JwtChecker() gin.HandlerFunc

func SetUP

func SetUP(engine *gin.Engine)

func ZapRecovery

func ZapRecovery() gin.HandlerFunc

Types

type RequestLog

type RequestLog struct {
	Level        string
	ClientIP     string
	TS           string
	Method       string
	Path         string
	Proto        string
	StatusCode   int
	Latency      float64
	UserAgent    string
	ErrorMessage string
}

Jump to

Keyboard shortcuts

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