Documentation ¶
Index ¶
- Variables
- func CreateAccount(account *models.Account) error
- func CreateDatabase(dbname string, dbuser string, dbpassword string, dbhost string) (*sql.DB, error)
- func CreateTask(task *models.Task) error
- func GetAccountByID(id uuid.UUID) (models.Account, error)
- func GetAccountByUserID(userID uuid.UUID) (models.Account, error)
- func GetAllAccounts() ([]models.Account, error)
- func GetUserTasks(account models.AuthenticatedUser) ([]models.Task, error)
- func Init() error
- func UpdateAccount(account *models.Account) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Bun *bun.DB
Functions ¶
func CreateAccount ¶
func CreateDatabase ¶
func CreateTask ¶
func GetAllAccounts ¶
func GetUserTasks ¶
func GetUserTasks(account models.AuthenticatedUser) ([]models.Task, error)
func UpdateAccount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.