auth

package
v0.0.0-...-f43f97b Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthHandler

func NewAuthHandler(r *gin.RouterGroup, cfg *config.Config)

Types

type User

type User struct {
	Id       int
	Email    string
	Password string
	Roles    []string
}

User is dummy user concept

func GetUser

func GetUser(email, password string) *User

func GetUserList

func GetUserList() []*User

Jump to

Keyboard shortcuts

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