Documentation ¶
Index ¶
- Variables
- func Auth(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc
- func CheckUserAuthorization(c *gin.Context) (*dtos.PunqUser, error)
- func HasSufficientAccess(c *gin.Context, requiredAccessLevel dtos.AccessLevel) (bool, error)
- func InitAuthRoutes(router *gin.Engine)
- func InitBackend()
- func InitContextRoutes(router *gin.Engine)
- func InitFrontend()
- func InitGeneralRoutes(router *gin.Engine)
- func InitUserRoutes(router *gin.Engine)
- func InitWorkloadRoutes(router *gin.Engine)
- func RequireContextId() gin.HandlerFunc
- type AuthHeader
- type LoginInput
Constants ¶
This section is empty.
Variables ¶
View Source
var HtmlDirFs embed.FS
Functions ¶
func Auth ¶
func Auth(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc
func HasSufficientAccess ¶
func InitAuthRoutes ¶ added in v1.2.0
func InitBackend ¶ added in v1.2.16
func InitBackend()
func InitContextRoutes ¶
func InitFrontend ¶ added in v1.2.16
func InitFrontend()
func InitGeneralRoutes ¶
func InitUserRoutes ¶
func InitWorkloadRoutes ¶
func RequireContextId ¶ added in v1.2.1
func RequireContextId() gin.HandlerFunc
Types ¶
type AuthHeader ¶ added in v1.2.0
type LoginInput ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.