Documentation
¶
Index ¶
- type AuthPostgres
- type TodoItemPostgres
- func (r *TodoItemPostgres) Create(listId int, item domain.TodoItem) (int, error)
- func (r *TodoItemPostgres) Delete(userId, itemId int) (err error)
- func (r *TodoItemPostgres) GetAll(userId, listId int) ([]domain.TodoItem, error)
- func (r *TodoItemPostgres) GetById(userId, itemId int) (domain.TodoItem, error)
- func (r *TodoItemPostgres) Update(userId, itemId int, item domain.UpdateItemInput) error
- type TodoListPostgres
- func (r *TodoListPostgres) Create(userId int, list domain.TodoList) (int, error)
- func (r *TodoListPostgres) Delete(userId int, listId int) error
- func (r *TodoListPostgres) GetAll(userId int) ([]domain.TodoList, error)
- func (r *TodoListPostgres) GetById(userId int, listId int) (domain.TodoList, error)
- func (r *TodoListPostgres) Update(userId, listId int, list domain.UpdateListInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthPostgres ¶
type AuthPostgres struct {
// contains filtered or unexported fields
}
func NewAuthPostgresRepo ¶
func NewAuthPostgresRepo(db *sqlx.DB) *AuthPostgres
func (*AuthPostgres) CreateUser ¶
func (r *AuthPostgres) CreateUser(user domain.User) (id int, err error)
type TodoItemPostgres ¶
type TodoItemPostgres struct {
// contains filtered or unexported fields
}
func NewTodoItemPostgresRepo ¶
func NewTodoItemPostgresRepo(db *sqlx.DB) *TodoItemPostgres
func (*TodoItemPostgres) Delete ¶
func (r *TodoItemPostgres) Delete(userId, itemId int) (err error)
func (*TodoItemPostgres) GetAll ¶
func (r *TodoItemPostgres) GetAll(userId, listId int) ([]domain.TodoItem, error)
func (*TodoItemPostgres) GetById ¶
func (r *TodoItemPostgres) GetById(userId, itemId int) (domain.TodoItem, error)
func (*TodoItemPostgres) Update ¶
func (r *TodoItemPostgres) Update(userId, itemId int, item domain.UpdateItemInput) error
type TodoListPostgres ¶
type TodoListPostgres struct {
// contains filtered or unexported fields
}
func NewTodoListPostgresRepo ¶
func NewTodoListPostgresRepo(db *sqlx.DB) *TodoListPostgres
func (*TodoListPostgres) GetAll ¶
func (r *TodoListPostgres) GetAll(userId int) ([]domain.TodoList, error)
func (*TodoListPostgres) Update ¶
func (r *TodoListPostgres) Update(userId, listId int, list domain.UpdateListInput) error
Click to show internal directories.
Click to hide internal directories.