📝 Added TODO for topic repository contract

This commit is contained in:
Maxim Lebedev 2023-12-19 19:49:40 +06:00
parent cb76a0aea8
commit 7e2eab8694
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 3 additions and 0 deletions

View File

@ -14,8 +14,11 @@ type (
Repository interface {
Create(ctx context.Context, u *url.URL, topic domain.Topic) error
Update(ctx context.Context, u *url.URL, update UpdateFunc) error
// TODO(toby3d): search by URL prefix for publish every topic on
// domain or it's directory.
Fetch(ctx context.Context) ([]domain.Topic, error)
Get(ctx context.Context, u *url.URL) (*domain.Topic, error)
// TODO(toby3d): Delete(ctx context.Context, u *url.URL) (bool, error)
}
)