masterpasswordmanager

package
v0.0.0-...-c049f52 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMasterKeyTable

func CreateMasterKeyTable() *sql.DB

CreateMasterKeyTable creates a mastertable if it doesn't exist.

func GetUserDetails

func GetUserDetails(db *sql.DB) (*userDetails, error)

GetUserDetails get the details of the user.

func InsertUserDataToDB

func InsertUserDataToDB(db *sql.DB, firstName string, lastName string,
	email string, isActive bool)

InsertUserDataToDB inserts new information to the database.

func ResetMasterKey

func ResetMasterKey(db *sql.DB) error

ResetMasterKey resets master key in the database.

func UpdateInfo

func UpdateInfo(db *sql.DB, id int, firstName string, lastName string,
	email string, masterKey string, createdAt string,
	updatedAt string, isActive bool)

UpdateInfo updates the user database info if changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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