chore(updater): common GetServers signature
- Log warnings when running outside of CLI mode - Remove updater CLI bool setting - Warnings are logged in updating functions
This commit is contained in:
19
internal/provider/perfectprivacy/updater/updater.go
Normal file
19
internal/provider/perfectprivacy/updater/updater.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user