users

package
v0.0.0-...-acfd9b1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USERCOLLECTION = "users"
	USERINDEXNAME  = "Username"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Users

type Users struct{}

func NewUser

func NewUser() *Users

func (*Users) CreateUser

func (u *Users) CreateUser(username string, mode string) error

func (*Users) DeleteUser

func (u *Users) DeleteUser(username string) error

func (*Users) DumpUser

func (u *Users) DumpUser(username string, fileName string) error

func (*Users) GetUserPwd

func (u *Users) GetUserPwd(username string) (string, error)

func (*Users) UpdateUser

func (u *Users) UpdateUser(username string) (string, error)

func (*Users) Validate

func (u *Users) Validate(username string, password string, mode string) (bool, error)

Jump to

Keyboard shortcuts

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