Files
gluetun/internal/provider/perfectprivacy/updater/updater.go
Quentin McGaw 90c6c8485b chore(updater): common GetServers signature
- Log warnings when running outside of CLI mode
- Remove updater CLI bool setting
- Warnings are logged in updating functions
2022-05-28 20:58:50 +00:00

20 lines
317 B
Go

package perfectprivacy
import "github.com/qdm12/gluetun/internal/updater/unzip"
type Updater struct {
unzipper unzip.Unzipper
warner Warner
}
type Warner interface {
Warn(s string)
}
func New(unzipper unzip.Unzipper, warner Warner) *Updater {
return &Updater{
unzipper: unzipper,
warner: warner,
}
}