Files
gluetun/internal/provider/wevpn/provider.go

31 lines
643 B
Go
Raw Normal View History

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