mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-25 20:06:25 +02:00
34 lines
657 B
Go
34 lines
657 B
Go
package surfshark
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/qdm12/gluetun/pkg/updaters/common"
|
|
)
|
|
|
|
type Updater struct {
|
|
client *http.Client
|
|
unzipper common.Unzipper
|
|
parallelResolver common.ParallelResolver
|
|
warner common.Warner
|
|
}
|
|
|
|
func New(client *http.Client, unzipper common.Unzipper,
|
|
warner common.Warner, parallelResolver common.ParallelResolver,
|
|
) *Updater {
|
|
return &Updater{
|
|
client: client,
|
|
unzipper: unzipper,
|
|
parallelResolver: parallelResolver,
|
|
warner: warner,
|
|
}
|
|
}
|
|
|
|
func (u *Updater) Version() uint16 {
|
|
return 4 //nolint:mnd
|
|
}
|
|
|
|
func (u *Updater) Name() string {
|
|
return "surfshark"
|
|
}
|