diff --git a/internal/topic/repository.go b/internal/topic/repository.go index e8371d4..2f04e3a 100644 --- a/internal/topic/repository.go +++ b/internal/topic/repository.go @@ -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) } )