Documentation ¶
Index ¶
- type Database
- func (db *Database) AddUser(username string, password string) error
- func (db *Database) Authenticate(username string, password string) bool
- func (db *Database) GetUserList() []string
- func (db *Database) LoadDatabase(location string, salt string) error
- func (db *Database) RemoveUser(username string) error
- func (db *Database) UpdateUser(username string, password string) error
- func (db *Database) UserExists(username string) bool
- type DoError
- type UsersObject
- type UsersType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Location string Salt string Cache UsersObject }
Database Database Object
func (*Database) Authenticate ¶
Authenticate Authenticate users against database. Returns boolen
func (*Database) GetUserList ¶
GetUserList Returns a list of users from the database.
func (*Database) LoadDatabase ¶
LoadDatabase Initialize the database Object.
func (*Database) RemoveUser ¶
RemoveUser Remove user from database.
func (*Database) UpdateUser ¶
UpdateUser Update existing user in database.
func (*Database) UserExists ¶
UserExists Check if user exists in database. Returns boolen
Click to show internal directories.
Click to hide internal directories.