Documentation ¶
Index ¶
Constants ¶
View Source
const (
IdentityKeyUserName = "user_name"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminMiddleware ¶
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 ¶
func NewUserProblemMiddleware ¶
func NewUserProblemMiddleware(database *db.Database, manager permissions.Manager, cache domain.TeleOMACache) UserProblemMiddleware
Click to show internal directories.
Click to hide internal directories.