db

package
v0.0.0-...-6d8fa8c Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSharedLink(linkName, linkDirectory string, userID int) bool

func DeleteUserByID

func DeleteUserByID(id int) bool

func EditUserPass

func EditUserPass(password string, userID int) bool

func GetUserPass

func GetUserPass(id int) string

func InsertUser

func InsertUser(username, password string, isAdmin int) bool

Types

type UsersList

type UsersList struct {
	UserName,
	UserPassword string
	UserID,
	IsAdmin int
}

func GetAllUsers

func GetAllUsers() []UsersList

func GetUserByID

func GetUserByID(id int) UsersList

func GetUserByName

func GetUserByName(username string) UsersList

func LoginMembership

func LoginMembership(username, password string) (bool, UsersList)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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