auth

package
v0.0.0-...-ef8624d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtMiddleware

func JwtMiddleware(db *gorm.DB, jwtParser jwt.Parser) func(http.Handler) http.Handler

func Roles

func Roles(ctx context.Context) []string

func User

func User(ctx context.Context) *entity.User

func UserID

func UserID(ctx context.Context) uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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