userdb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(user *types.User) error

DeleteUser delets a user in a userdb

func GetUser

func GetUser(id int) (*types.User, error)

GetUser retrieves a user from a userdb

func InsertUser

func InsertUser(user *types.User) error

InsertUser inserts a new user in a userdb

func NewUserDB

func NewUserDB(dbFilePath string) error

NewUserDB initializes a new database to hold users informations.

func UpdateUser

func UpdateUser(user *types.User) error

UpdateUser updates a user in a userdb

Types

This section is empty.

Jump to

Keyboard shortcuts

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