package
Version:
v0.0.0-...-57b3f38
Opens a new window with list of versions in this module.
Published: Jun 28, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package userdb contains user related CRUD functionality.
Store manages the set of APIs for user database access.
NewStore constructs the api for data access.
APIKeyValidation validate a given API Key Hash.
Create create a user to the database.
DeleteAll deletes all users.
IsUsersEmpty checks if the table users is empty.
type UserDB struct {
ID uuid.UUID `db:"user_id"`
Name string `db:"name"`
APIKeyHash string `db:"api_key_hash"`
DateCreated time.Time `db:"date_created"`
}
UserDB represents individual user of the database layer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.