Documentation
¶
Index ¶
- func ParseQuickAdd(raw string) (domain.CreateTaskInput, error)
- func ResolveHabit(ref string, habits []domain.Habit) (domain.Habit, error)
- func ResolveProject(ref string, projects []domain.Project) (domain.Project, error)
- type AuthApp
- type AuthService
- type AuthServiceFactory
- type ConfigApp
- type FocusAPI
- type FocusApp
- type HabitAPI
- type HabitApp
- func (a HabitApp) Add(ctx context.Context, in domain.CreateHabitInput) (domain.Habit, error)
- func (a HabitApp) Archive(ctx context.Context, ref string) (domain.Habit, error)
- func (a HabitApp) Checkin(ctx context.Context, ref string, value float64) error
- func (a HabitApp) Get(ctx context.Context, ref string) (domain.Habit, error)
- func (a HabitApp) List(ctx context.Context) ([]domain.Habit, error)
- func (a HabitApp) Log(ctx context.Context, ref string) ([]domain.HabitCheckin, error)
- func (a HabitApp) Update(ctx context.Context, in domain.UpdateHabitInput) (domain.Habit, error)
- type ListFocusInput
- type ListTasksInput
- type LoginInput
- type ProjectAPI
- type ProjectApp
- func (a ProjectApp) Create(ctx context.Context, name, kind string) (domain.Project, error)
- func (a ProjectApp) Get(ctx context.Context, ref string) (domain.Project, error)
- func (a ProjectApp) List(ctx context.Context) ([]domain.Project, error)
- func (a ProjectApp) Remove(ctx context.Context, ref string) error
- func (a ProjectApp) Update(ctx context.Context, ref, name, kind string) (domain.Project, error)
- type ProjectTokenSource
- type QuickAddApp
- type TaskAPI
- type TaskApp
- func (a TaskApp) Add(ctx context.Context, in domain.CreateTaskInput) (domain.Task, error)
- func (a TaskApp) Done(ctx context.Context, ref string, projectRef string) error
- func (a TaskApp) Get(ctx context.Context, ref string, projectRef string) (domain.Task, map[string]string, error)
- func (a TaskApp) List(ctx context.Context, in ListTasksInput) ([]domain.Task, map[string]string, error)
- func (a TaskApp) ListProjects(ctx context.Context) ([]domain.Project, error)
- func (a TaskApp) Move(ctx context.Context, in domain.MoveTaskInput) error
- func (a TaskApp) Remove(ctx context.Context, ref string, projectRef string) error
- func (a TaskApp) Reopen(ctx context.Context, ref string, projectRef string) error
- func (a TaskApp) Today(ctx context.Context) ([]domain.Task, map[string]string, error)
- func (a TaskApp) Update(ctx context.Context, in domain.UpdateTaskInput) (domain.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseQuickAdd ¶
func ParseQuickAdd(raw string) (domain.CreateTaskInput, error)
Types ¶
type AuthApp ¶
type AuthApp struct {
ConfigStore *config.Store
Service AuthService
ServiceForRegion AuthServiceFactory
}
type AuthService ¶
type AuthServiceFactory ¶
type AuthServiceFactory func(region string) (AuthService, error)
type FocusApp ¶
type FocusApp struct {
Auth ProjectTokenSource
Client FocusAPI
Now func() time.Time
}
type HabitAPI ¶
type HabitAPI interface {
ListHabits(context.Context, string) ([]domain.Habit, error)
GetHabit(context.Context, string, string) (domain.Habit, error)
CreateHabit(context.Context, string, domain.CreateHabitPayload) (domain.Habit, error)
UpdateHabit(context.Context, string, string, domain.CreateHabitPayload) (domain.Habit, error)
CheckinHabit(context.Context, string, string, int, float64, float64) error
ListCheckins(context.Context, string, []string, int, int) ([]domain.HabitCheckin, error)
}
type HabitApp ¶
type HabitApp struct {
Auth ProjectTokenSource
Client HabitAPI
}
type ListFocusInput ¶
type ListTasksInput ¶
type LoginInput ¶
type ProjectAPI ¶
type ProjectAPI interface {
ListProjects(context.Context, string) ([]domain.Project, error)
CreateProject(context.Context, string, string, string) (domain.Project, error)
UpdateProject(context.Context, string, string, string, string) (domain.Project, error)
DeleteProject(context.Context, string, string) error
}
type ProjectApp ¶
type ProjectApp struct {
Auth ProjectTokenSource
Client ProjectAPI
}
type ProjectTokenSource ¶
type QuickAddApp ¶
type TaskAPI ¶
type TaskAPI interface {
ListProjects(context.Context, string) ([]domain.Project, error)
FilterTasks(context.Context, string, domain.TaskFilter) ([]domain.Task, error)
GetProjectData(context.Context, string, string) (domain.Project, []domain.Task, error)
CreateTask(context.Context, string, domain.CreateTaskPayload) (domain.Task, error)
UpdateTask(context.Context, string, domain.Task) (domain.Task, error)
CompleteTask(context.Context, string, string, string) error
DeleteTask(context.Context, string, string, string) error
MoveTask(context.Context, string, string, string, string) error
}
type TaskApp ¶
type TaskApp struct {
Auth ProjectTokenSource
Client TaskAPI
ConfigStore *config.Store
Now func() time.Time
}
func (TaskApp) ListProjects ¶
Click to show internal directories.
Click to hide internal directories.