feat(providers): add giganews support (#2479)

This commit is contained in:
Quentin McGaw
2024-09-18 13:01:37 +02:00
committed by GitHub
parent 429aea8e0f
commit 07651683f9
16 changed files with 958 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
package giganews
import (
"math/rand"
"github.com/qdm12/gluetun/internal/constants/providers"
"github.com/qdm12/gluetun/internal/provider/common"
"github.com/qdm12/gluetun/internal/provider/giganews/updater"
)
type Provider struct {
storage common.Storage
randSource rand.Source
common.Fetcher
}
func New(storage common.Storage, randSource rand.Source,
unzipper common.Unzipper, updaterWarner common.Warner,
parallelResolver common.ParallelResolver) *Provider {
return &Provider{
storage: storage,
randSource: randSource,
Fetcher: updater.New(unzipper, updaterWarner, parallelResolver),
}
}
func (p *Provider) Name() string {
return providers.Giganews
}