25 lines
576 B
Go
25 lines
576 B
Go
package qbittorrent
|
|
|
|
import (
|
|
"context"
|
|
|
|
qbdaemon "git.kmsign.ru/royalcat/tstor/plugins/qbittorrent/daemon"
|
|
"git.kmsign.ru/royalcat/tstor/server/src/daemon"
|
|
"git.kmsign.ru/royalcat/tstor/server/tstor"
|
|
"github.com/knadh/koanf/v2"
|
|
)
|
|
|
|
type QBittorrentPlugin struct {
|
|
}
|
|
|
|
var _ tstor.Plugin = (*QBittorrentPlugin)(nil)
|
|
|
|
func (QBittorrentPlugin) Name() string {
|
|
return "qbittorrent"
|
|
}
|
|
|
|
var _ tstor.DaemonPlugin = (*QBittorrentPlugin)(nil)
|
|
|
|
func (QBittorrentPlugin) NewDaemon(ctx context.Context, koanf *koanf.Koanf) (daemon.Daemon, error) {
|
|
return qbdaemon.New(ctx, koanf)
|
|
}
|