Documentation ¶
Overview ¶
Package repository implements domain services with repository.
Index ¶
- type Task
- func (tr *Task) Cancel(ctx context.Context, identity task.Identity) error
- func (tr *Task) Create(ctx context.Context, value task.Value) (task.Entity, error)
- func (tr *Task) Find(ctx context.Context) []task.Entity
- func (tr *Task) FindByID(ctx context.Context, identity task.Identity) (task.Entity, error)
- func (tr *Task) Finish(ctx context.Context, identity task.Identity) error
- func (tr *Task) FinishExpired(_ context.Context) error
- func (tr *Task) TaskCreator() task.Creator
- func (tr *Task) TaskFinder() task.Finder
- func (tr *Task) TaskFinisher() task.Finisher
- func (tr *Task) TaskUpdater() task.Updater
- func (tr *Task) Update(_ context.Context, identity task.Identity, value task.Value) error
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
}
Task is an in-memory task repository.
func (*Task) FinishExpired ¶
FinishExpired closes expired tasks.
func (*Task) TaskCreator ¶
TaskCreator is a service provider.
func (*Task) TaskFinder ¶
TaskFinder is a service provider.
func (*Task) TaskFinisher ¶
TaskFinisher is a service provider.
func (*Task) TaskUpdater ¶
TaskUpdater is a service provider.
Click to show internal directories.
Click to hide internal directories.