Back to godoc.org
github.com/QTTQ/paopao / middleware

Package middleware

v0.0.0-...-96c7ced
Latest Go to latest

The latest major version is .

Published: Dec 30, 2018 | License: MIT | Module: github.com/QTTQ/paopao

Index

Constants

const (
	AUTH_HEADER_NAME = "X-Auth-Token"
	USER_ID_KEY      = "uid"
	USER_DATA_KEY    = "udata"
	DB_ERR_CODE      = 258
)

func AllUrlPath

func AllUrlPath(c *gin.Context)

func Cors

func Cors() gin.HandlerFunc

func UserAuth

func UserAuth() gin.HandlerFunc
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier