Documentation ¶
Overview ¶
Package database defines the user database.
Package database defines the user database.
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) DeleteExpiredTokens() error
- func (db *DB) DeleteToken(id user.Name, token string) error
- func (db *DB) Dump() ([]*user.Account, error)
- func (db *DB) GetAccount(name user.Name) (*user.Account, error)
- func (db *DB) GetAccountByEmail(email string) (*user.Account, error)
- func (db *DB) NewAccount(r *user.NewAccountRequest) (*user.Account, error)
- func (db *DB) NewToken(id user.Name) (string, error)
- func (db *DB) UpdateAccount(a *user.Account) error
- func (db *DB) ValidToken(id user.Name, token string) (bool, error)
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteExpiredTokens ¶
func (*DB) NewAccount ¶
Click to show internal directories.
Click to hide internal directories.