middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validate = validator.New()

Functions

func AuthRequired

func AuthRequired(c *gin.Context)

func GetAccessToken

func GetAccessToken(c *gin.Context) string

func GetTenantID

func GetTenantID(c *gin.Context) string

func GetTransID

func GetTransID(c *gin.Context) string

func GetUser

func GetUser(c *gin.Context) (bool, *apipb.CurrentUser)

func GetUserID

func GetUserID(c *gin.Context) string

func GetUserName

func GetUserName(c *gin.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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