middleware

package
v0.0.0-...-469aeb9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const LogHeaderKey = "LOGHEADERKEY"

LogHeaderKey 日志header存当前连接的ip和端口

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

func JsonRspErr

func JsonRspErr(c *gin.Context, errCode *errCode.ErrCode, err error)

func JsonRspOk

func JsonRspOk(c *gin.Context, data interface{}, printData bool)

func ListDirHandler

func ListDirHandler() gin.HandlerFunc

func LogHeader

func LogHeader() gin.HandlerFunc

func Test

func Test() gin.HandlerFunc

func TestHandler

func TestHandler() gin.HandlerFunc

func UploadHandler

func UploadHandler() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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