mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
ebd94723c1
- Each provider interface can now fetch updated servers data - Rename each provider updater subpackage name to `updater` - Updater constructor does not take a settings struct - Updater update method takes in a slice of provider strings
16 lines
169 B
Go
16 lines
169 B
Go
package updater
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type Updater struct {
|
|
client *http.Client
|
|
}
|
|
|
|
func New(client *http.Client) *Updater {
|
|
return &Updater{
|
|
client: client,
|
|
}
|
|
}
|