tstor/plugins/qbittorrent/delivery/graphql/resolver/resolver.go
2025-04-21 03:38:12 +04:00

22 lines
619 B
Go

package resolver
import (
"context"
"git.kmsign.ru/royalcat/tstor/plugins/qbittorrent/pkg/qbittorrent"
)
// This file will not be regenerated automatically.
//
// It serves as dependency injection for your app, add any dependencies you require here.
type Resolver struct {
QBitTorrentDaemon QBitTorrentDaemon
}
type QBitTorrentDaemon interface {
ListTorrents(ctx context.Context) ([]*qbittorrent.TorrentInfo, error)
SourceFiles(ctx context.Context, hash string) ([]string, error)
Cleanup(ctx context.Context, run bool) ([]string, error)
CleanupUnregistred(ctx context.Context, run bool) ([]string, error)
}