middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoCache added in v1.0.9

func GoCache(c *gin.Context)

GoCache 是否允許存取快取(realtime = true 時存取快取)

func GoCors added in v1.0.5

func GoCors(data *viper.Viper) gin.HandlerFunc

func GoI18nMiddleware added in v1.0.1

func GoI18nMiddleware(data *viper.Viper) gin.HandlerFunc

func Logger

func Logger() gin.HandlerFunc

Logger is the logrus logger handler

func PermissionAuth added in v1.0.14

func PermissionAuth(config, auth *viper.Viper) gin.HandlerFunc

PermissionAuth 權限驗證

func RequestIDMiddleware

func RequestIDMiddleware(appID string) gin.HandlerFunc

RequestIDMiddleware 中間件回應Header

Types

This section is empty.

Jump to

Keyboard shortcuts

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