Documentation ¶
Index ¶
- type Task
- func (t *Task) By(ctx context.Context, args internal.SearchParams) (_ internal.SearchResults, err error)
- 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) Task(ctx context.Context, id string) (internal.Task, error)
- func (t *Task) Update(ctx context.Context, id string, description string, priority internal.Priority, ...) error
- type TaskMessageBrokerRepo
- type TaskRepo
- type TaskSearchRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func NewTask ¶
func NewTask(logger *zap.Logger, repo TaskRepo, search TaskSearchRepo, messageBroker TaskMessageBrokerRepo, ) *Task
func (*Task) By ¶
func (t *Task) By(ctx context.Context, args internal.SearchParams) (_ internal.SearchResults, err error)
type TaskMessageBrokerRepo ¶
type TaskRepo ¶
type TaskRepo interface { Create(ctx context.Context, dates 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 }
type TaskSearchRepo ¶
type TaskSearchRepo interface {
Search(ctx context.Context, args internal.SearchParams) (internal.SearchResults, error)
}
Click to show internal directories.
Click to hide internal directories.