middlewares

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdentityKeyUserName = "user_name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminMiddleware

type AdminMiddleware interface {
	AdminCheck(c *gin.Context)
}

func NewAdminMiddleware

func NewAdminMiddleware(database *db.Database, manager permissions.Manager) AdminMiddleware

type AuthMiddleware

type AuthMiddleware interface {
	LoginHandler(c *gin.Context)
	MiddlewareFunc() gin.HandlerFunc
	RefreshHandler(c *gin.Context)
}

func NewAuthMiddleware

func NewAuthMiddleware(database *db.Database) AuthMiddleware

type UserProblemMiddleware

type UserProblemMiddleware interface {
	ViewAuthCheck(c *gin.Context)
}

func NewUserProblemMiddleware

func NewUserProblemMiddleware(database *db.Database, manager permissions.Manager, cache domain.TeleOMACache) UserProblemMiddleware

Jump to

Keyboard shortcuts

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