2022-06-09 23:47:12 +00:00
|
|
|
package updater
|
2022-05-28 20:58:50 +00:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"net/http"
|
2022-06-11 01:34:30 +00:00
|
|
|
|
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/common"
|
2022-05-28 20:58:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Updater struct {
|
2025-11-13 14:05:26 -05:00
|
|
|
client *http.Client
|
|
|
|
|
username string
|
|
|
|
|
password string
|
|
|
|
|
warner common.Warner
|
2022-05-28 20:58:50 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-13 14:05:26 -05:00
|
|
|
func New(client *http.Client, warner common.Warner, username, password string) *Updater {
|
2022-05-28 20:58:50 +00:00
|
|
|
return &Updater{
|
2025-11-13 14:05:26 -05:00
|
|
|
client: client,
|
|
|
|
|
username: username,
|
|
|
|
|
password: password,
|
|
|
|
|
warner: warner,
|
2022-05-28 20:58:50 +00:00
|
|
|
}
|
|
|
|
|
}
|