authUC

package
v0.0.0-...-09378e2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUC

type AuthUC struct {
	// contains filtered or unexported fields
}

func New

func New(publicKey rsa.PublicKey) *AuthUC

func (*AuthUC) GetUserRoleFromToken

func (uc *AuthUC) GetUserRoleFromToken(jwtToken string) (int, error)

func (*AuthUC) IsUserAdmin

func (uc *AuthUC) IsUserAdmin(userRole int) bool

Jump to

Keyboard shortcuts

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