middleware

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SecretKey   = "github.com/LonelyPale/goutils"
	SessionName = "s"
)

Functions

func Cors

func Cors(origins ...string) gin.HandlerFunc

func GetSession added in v0.0.8

func GetSession(c *gin.Context) sessions.Session

func LoggerToFile

func LoggerToFile() gin.HandlerFunc

日志记录到文件

func Session added in v0.0.8

func Session() 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