Documentation
¶
Index ¶
- type Client
- func (c *Client) CheckinHabit(ctx context.Context, token, habitID string, stamp int, value, goal float64) error
- func (c *Client) CompleteTask(ctx context.Context, token, projectID, taskID string) error
- func (c *Client) CreateHabit(ctx context.Context, token string, in domain.CreateHabitPayload) (domain.Habit, error)
- func (c *Client) CreateProject(ctx context.Context, token, name, kind string) (domain.Project, error)
- func (c *Client) CreateTask(ctx context.Context, token string, in domain.CreateTaskPayload) (domain.Task, error)
- func (c *Client) DeleteProject(ctx context.Context, token, projectID string) error
- func (c *Client) DeleteTask(ctx context.Context, token, projectID, taskID string) error
- func (c *Client) DoJSON(ctx context.Context, method, path, token string, in, out any) error
- func (c *Client) FilterTasks(ctx context.Context, token string, filter domain.TaskFilter) ([]domain.Task, error)
- func (c *Client) GetFocus(ctx context.Context, token, focusID string, focusType int) (domain.Focus, error)
- func (c *Client) GetHabit(ctx context.Context, token, habitID string) (domain.Habit, error)
- func (c *Client) GetProjectData(ctx context.Context, token, projectID string) (domain.Project, []domain.Task, error)
- func (c *Client) ListCheckins(ctx context.Context, token string, habitIDs []string, from, to int) ([]domain.HabitCheckin, error)
- func (c *Client) ListFocus(ctx context.Context, token string, startDate, endDate time.Time, focusType int) ([]domain.Focus, error)
- func (c *Client) ListHabits(ctx context.Context, token string) ([]domain.Habit, error)
- func (c *Client) ListProjects(ctx context.Context, token string) ([]domain.Project, error)
- func (c *Client) MoveTask(ctx context.Context, token, fromProjectID, toProjectID, taskID string) error
- func (c *Client) UpdateHabit(ctx context.Context, token, habitID string, in domain.CreateHabitPayload) (domain.Habit, error)
- func (c *Client) UpdateProject(ctx context.Context, token, projectID, name, kind string) (domain.Project, error)
- func (c *Client) UpdateTask(ctx context.Context, token string, task domain.Task) (domain.Task, error)
- type RemoteError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CheckinHabit ¶
func (*Client) CompleteTask ¶
func (*Client) CreateHabit ¶
func (*Client) CreateProject ¶
func (*Client) CreateTask ¶
func (*Client) DeleteProject ¶
func (*Client) DeleteTask ¶
func (*Client) FilterTasks ¶
func (*Client) GetProjectData ¶
func (*Client) ListCheckins ¶
func (*Client) ListHabits ¶
func (*Client) ListProjects ¶
func (*Client) UpdateHabit ¶
func (*Client) UpdateProject ¶
type RemoteError ¶
func (*RemoteError) Error ¶
func (e *RemoteError) Error() string
Click to show internal directories.
Click to hide internal directories.