Files
gluetun/internal/provider/cyberghost/provider.go

30 lines
613 B
Go
Raw Normal View History

package cyberghost
import (
"math/rand"
"github.com/qdm12/gluetun/internal/constants/providers"
"github.com/qdm12/gluetun/internal/provider/common"
"github.com/qdm12/gluetun/internal/provider/cyberghost/updater"
)
type Provider struct {
storage common.Storage
randSource rand.Source
common.Fetcher
}
func New(storage common.Storage, randSource rand.Source,
2024-10-11 19:20:48 +00:00
parallelResolver common.ParallelResolver,
) *Provider {
return &Provider{
storage: storage,
randSource: randSource,
Fetcher: updater.New(parallelResolver),
}
}
func (p *Provider) Name() string {
return providers.Cyberghost
}