package store import "context" type Database interface { IsDownloaded(ctx context.Context, source, id string) (bool, error) MarkDownloaded(ctx context.Context, source, id string) error MarkFailed(ctx context.Context, source, mediaType, id string) error Close() error } type Dummy struct{} func NewDummy() *Dummy { return &Dummy{} } func (d *Dummy) IsDownloaded(context.Context, string, string) (bool, error) { return false, nil } func (d *Dummy) MarkDownloaded(context.Context, string, string) error { return nil } func (d *Dummy) MarkFailed(context.Context, string, string, string) error { return nil } func (d *Dummy) Close() error { return nil }