📝 Added TODO for topic repository contract
This commit is contained in:
parent
cb76a0aea8
commit
7e2eab8694
|
@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue