Documentation ¶
Index ¶
- type SearchableTask
- type SearchableTaskStore
- type Task
- func (t *Task) Create(ctx context.Context, params internal.CreateParams) (internal.Task, error)
- func (t *Task) Delete(ctx context.Context, id string) error
- func (t *Task) Find(ctx context.Context, id string) (internal.Task, error)
- func (t *Task) Update(ctx context.Context, id string, description string, priority internal.Priority, ...) error
- type TaskStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchableTask ¶
type SearchableTask struct {
// contains filtered or unexported fields
}
SearchableTask ...
func NewSearchableTask ¶
func NewSearchableTask(client *memcache.Client, orig SearchableTaskStore) *SearchableTask
NewSearchableTask instantiates the Task repository.
func (*SearchableTask) Delete ¶
func (t *SearchableTask) Delete(ctx context.Context, id string) error
Delete ...
func (*SearchableTask) Search ¶
func (t *SearchableTask) Search(ctx context.Context, args internal.SearchParams) (internal.SearchResults, error)
Search ...
type SearchableTaskStore ¶
type TaskStore ¶
type TaskStore interface { Create(ctx context.Context, params internal.CreateParams) (internal.Task, error) Delete(ctx context.Context, id string) error Find(ctx context.Context, id string) (internal.Task, error) Update(ctx context.Context, id, description string, priority internal.Priority, dates internal.Dates, isDone bool) error }
Click to show internal directories.
Click to hide internal directories.