db

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(uid string) error

func DisableUser

func DisableUser(uid string) error

func EnableUser

func EnableUser(uid string) error

func IsUserEnabled

func IsUserEnabled(uid string) bool

func Setup

func Setup() error

Types

type User

type User struct {
	Username string
	Enabled  bool
}

func ListUsers

func ListUsers() ([]User, error)

type UserData

type UserData struct {
	Token string
	Uid   string
}

func LoginUser

func LoginUser(username string, password string) (UserData, error)

func RegisterUser

func RegisterUser(username string, password string) (UserData, error)

Jump to

Keyboard shortcuts

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