middleware

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogMiddleware

func AccessLogMiddleware(logger *logrus.Logger) gin.HandlerFunc

AccessLogMiddleware generate accesslog and output

func DisableAccessLog

func DisableAccessLog()

DisableAccessLog disable the accesslog

func EnableAccessLog

func EnableAccessLog()

isAccessLogEnabled enable the accesslog

func IsAccessLogEnabled

func IsAccessLogEnabled() bool

IsAccessLogEnabled return whether the accesslog was enabled or not

func RequestIDMiddleware

func RequestIDMiddleware(c *gin.Context)

RequestIDMiddleware set request uuid into context

Types

This section is empty.

Jump to

Keyboard shortcuts

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