initial Go port of streamrip

This commit is contained in:
2026-04-19 21:11:38 +02:00
commit 97e8b758b3
32 changed files with 7008 additions and 0 deletions

32
internal/store/store.go Normal file
View File

@@ -0,0 +1,32 @@
package store
import "context"
type Database interface {
IsDownloaded(ctx context.Context, id string) (bool, error)
MarkDownloaded(ctx context.Context, 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) (bool, error) {
return false, nil
}
func (d *Dummy) MarkDownloaded(context.Context, string) error {
return nil
}
func (d *Dummy) MarkFailed(context.Context, string, string, string) error {
return nil
}
func (d *Dummy) Close() error {
return nil
}