Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTaskNotFound = errors.New("task not found") ErrTaskExists = errors.New("task already exists") )
Functions ¶
This section is empty.
Types ¶
type TaskRepository ¶
type TaskRepository interface {
Create(ctx context.Context, task *modelrepo.TaskCreateDB) (int64, error)
Get(ctx context.Context, id int64) (*modelrepo.TaskDB, error)
List(ctx context.Context) ([]*modelrepo.TaskDB, error)
Update(ctx context.Context, id int64, task *modelrepo.TaskUpdateDB) (*modelrepo.TaskDB, error)
Delete(ctx context.Context, id int64) error
}
Click to show internal directories.
Click to hide internal directories.