Documentation ¶
Index ¶
- type Config
- type Database
- func (db *Database) CreateTodo(todo *model.Todo) error
- func (db *Database) CreateUser(user *model.User) error
- func (db *Database) DeleteTodoById(id uint) error
- func (db *Database) GetTodoById(id uint) (*model.Todo, error)
- func (db *Database) GetTodosByUserId(userId uint) ([]*model.Todo, error)
- func (db *Database) GetUserByEmail(email string) (*model.User, error)
- func (db *Database) UpdateTodo(todo *model.Todo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) DeleteTodoById ¶
func (*Database) GetTodosByUserId ¶
func (*Database) GetUserByEmail ¶
Click to show internal directories.
Click to hide internal directories.