Files
gluetun/internal/provider/surfshark/updater/updater.go

30 lines
520 B
Go
Raw Normal View History

package surfshark
import (
"net/http"
"github.com/qdm12/gluetun/internal/updater/resolver"
"github.com/qdm12/gluetun/internal/updater/unzip"
)
type Updater struct {
client *http.Client
unzipper unzip.Unzipper
presolver resolver.Parallel
warner Warner
}
type Warner interface {
Warn(s string)
}
func New(client *http.Client, unzipper unzip.Unzipper,
warner Warner) *Updater {
return &Updater{
client: client,
unzipper: unzipper,
presolver: newParallelResolver(),
warner: warner,
}
}