Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateTask(task *models.Task) (int, error) Close() error DeleteTaskByID(taskID int) error GetServerStatus() (*models.Status, error) GetTaskList() (*models.List, error) StartTask(taskID int) error UpdateStatus(status *models.Status) error Config() *koanf.Koanf CreatePomodoro(taskID int, pomodoro models.Pomodoro) error }
type Store ¶
type Store interface { TaskGetByID(ctx context.Context, id int) (*models.Task, error) GetAllTasks(ctx context.Context) (models.List, error) TaskSave(ctx context.Context, task *models.Task) (int, error) TaskDeleteByID(ctx context.Context, id int) error PomodoroGetByTaskID(ctx context.Context, id int) ([]*models.Pomodoro, error) PomodoroSave(ctx context.Context, taskID int, pomodoro *models.Pomodoro) error PomodoroDeleteByTaskID(ctx context.Context, id int) error Close() error InitDB() error }
Store is the persistent store of tasks
Click to show internal directories.
Click to hide internal directories.