Documentation
¶
Index ¶
- type ListOptions
- type Repository
- func (r *Repository) AllTasks(ctx context.Context) ([]core.Task, error)
- func (r *Repository) ApplyTombstone(ctx context.Context, t Tombstone) error
- func (r *Repository) Close() error
- func (r *Repository) CreateTask(ctx context.Context, t core.Task) (core.Task, error)
- func (r *Repository) DeleteAllTasks(ctx context.Context) error
- func (r *Repository) DeleteTask(ctx context.Context, id string) error
- func (r *Repository) GetTask(ctx context.Context, id string) (core.Task, error)
- func (r *Repository) ListTags(ctx context.Context) ([]string, error)
- func (r *Repository) ListTasks(ctx context.Context, opt ListOptions) ([]core.Task, error)
- func (r *Repository) Prune(ctx context.Context) error
- func (r *Repository) SyncSnapshot(ctx context.Context) ([]core.Task, []Tombstone, error)
- func (r *Repository) UpdateTask(ctx context.Context, id string, patch core.TaskPatch) (core.Task, error)
- func (r *Repository) UpsertTask(ctx context.Context, t core.Task) error
- func (r *Repository) Vacuum(ctx context.Context) error
- type Tombstone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListOptions ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) ApplyTombstone ¶
func (r *Repository) ApplyTombstone(ctx context.Context, t Tombstone) error
func (*Repository) Close ¶
func (r *Repository) Close() error
func (*Repository) CreateTask ¶
func (*Repository) DeleteAllTasks ¶
func (r *Repository) DeleteAllTasks(ctx context.Context) error
func (*Repository) DeleteTask ¶
func (r *Repository) DeleteTask(ctx context.Context, id string) error
func (*Repository) ListTasks ¶
func (r *Repository) ListTasks(ctx context.Context, opt ListOptions) ([]core.Task, error)
func (*Repository) SyncSnapshot ¶
func (*Repository) UpdateTask ¶
func (*Repository) UpsertTask ¶
UpsertTask inserts or updates a task by ID. The update is applied only if incoming UpdatedAt is newer than the stored record (last-writer-wins).
Click to show internal directories.
Click to hide internal directories.