middleware

package
v0.15.108 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextUserInfoKey     = "context-user-info"
	ContextAuthOrgInfoKey  = "context-auth-org-info"
	ContextParamOrgInfoKey = "context-param-org-info"
)

Variables

This section is empty.

Functions

func GetContextAuthOrgInfo

func GetContextAuthOrgInfo(c *gin.Context, sender response.Sender) (*uas.OrganizationInfo, bool)

func GetContextParamOrgInfo

func GetContextParamOrgInfo(c *gin.Context, sender response.Sender) (*uas.OrganizationInfo, bool)

func GetContextUserInfo

func GetContextUserInfo(c *gin.Context, sender response.Sender) (*uas.UserInfoWithRoles, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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