users

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserKey

func GetUserKey(user User, dbPassword string) (string, error)

func InitUserDatabase

func InitUserDatabase(dbPassword string)

func RegisterUser

func RegisterUser(email string, password string, role string, dbPassword string, encryptionKey string, ctx context.Context)

Types

type User

type User struct {
	ID           int
	Email        string
	Role         string
	PasswordHash string
	PrivateKey   string
}

func LoginUser

func LoginUser(email string, password string, dbPassword string, encryptionKey string, ctx context.Context) (*User, error)

Jump to

Keyboard shortcuts

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