Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewTodoInput ¶
type TodoStorage ¶
func NewTodoStorage ¶
func NewTodoStorage(conn *sqlx.DB) *TodoStorage
func (*TodoStorage) CompleteTodo ¶
func (s *TodoStorage) CompleteTodo(todoId int) error
func (*TodoStorage) CreateNewTodo ¶
func (s *TodoStorage) CreateNewTodo(data NewTodoInput) (int, error)
func (*TodoStorage) DeleteTodo ¶
func (s *TodoStorage) DeleteTodo(todoId int) error
func (*TodoStorage) GetAllTodos ¶
func (s *TodoStorage) GetAllTodos(userId int) ([]Todo_DB, error)
func (*TodoStorage) GetOneTodo ¶
func (s *TodoStorage) GetOneTodo(todoId int) (Todo_DB, error)
type UserStorage ¶
func NewUserStorage ¶
func NewUserStorage(conn *sqlx.DB) *UserStorage
func (*UserStorage) CreateNewUser ¶
func (s *UserStorage) CreateNewUser(data NewUser) (int, error)
Click to show internal directories.
Click to hide internal directories.