Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface {
// CreateUser creates a new user in the database.
CreateUser(user *model.User) error
// GetUserByUsername retrieves a user from the database based on their username.
GetUserByUsername(username string) (*model.User, error)
// UpdateUser updates an existing user in the database.
UpdateUser(user *model.User) error
// DeleteUser deletes a user from the database.
DeleteUser(username string) error
}
DB represents the interface for interacting with a database.
Click to show internal directories.
Click to hide internal directories.