#include <database-leveldb.h>
◆ AuthDatabaseLevelDB()
AuthDatabaseLevelDB::AuthDatabaseLevelDB |
( |
const std::string & | savedir | ) |
|
◆ ~AuthDatabaseLevelDB()
virtual AuthDatabaseLevelDB::~AuthDatabaseLevelDB |
( |
| ) |
|
|
virtualdefault |
◆ createAuth()
bool AuthDatabaseLevelDB::createAuth |
( |
AuthEntry & | authEntry | ) |
|
|
virtual |
◆ deleteAuth()
bool AuthDatabaseLevelDB::deleteAuth |
( |
const std::string & | name | ) |
|
|
virtual |
◆ getAuth()
bool AuthDatabaseLevelDB::getAuth |
( |
const std::string & | name, |
|
|
AuthEntry & | res ) |
|
virtual |
◆ listNames()
void AuthDatabaseLevelDB::listNames |
( |
std::vector< std::string > & | res | ) |
|
|
virtual |
◆ reload()
void AuthDatabaseLevelDB::reload |
( |
| ) |
|
|
virtual |
◆ saveAuth()
bool AuthDatabaseLevelDB::saveAuth |
( |
const AuthEntry & | authEntry | ) |
|
|
virtual |
Implements AuthDatabase.
References FATAL_ERROR_IF, AuthEntry::last_login, m_database, AuthEntry::name, AuthEntry::password, AuthEntry::privileges, serializeString16(), U16_MAX, writeS64(), writeU16(), and writeU8().
Referenced by createAuth().
◆ m_database
std::unique_ptr<leveldb::DB> AuthDatabaseLevelDB::m_database |
|
private |
The documentation for this class was generated from the following files: