db

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL