authorization

package
v0.0.0-...-0f680f1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeToken

func MakeToken(user User) string

Types

type User

type User struct {
	ID             int64
	Name           string
	Password       string
	OriginPassword string
}

func GetTokenValue

func GetTokenValue(token string) User

func MakeUser

func MakeUser(username, password string) (User, error)

func (User) ComparePassword

func (u User) ComparePassword(u2 User) error

Jump to

Keyboard shortcuts

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