Documentation ¶
Index ¶
- Constants
- type Repo
- func (db Repo) CreateTask(taskReq tasktodo.Request) (tasktodo.Task, error)
- func (db Repo) DeleteTask(taskID string) error
- func (db Repo) GetTask(taskID string) (tasktodo.Task, error)
- func (db Repo) ListTasks(page uint, date string, status string) ([]tasktodo.Task, error)
- func (db Repo) NewTable(ctx context.Context, cfg config.PostgresCfg) error
- func (db Repo) UpdateTask(newData tasktodo.Request, taskID string) (tasktodo.Task, error)
Constants ¶
View Source
const ( InvalidIdErr = "invalid task id" DateErr = "bad date" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.