mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
24 lines
348 B
Go
24 lines
348 B
Go
package privado
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/common"
|
|
)
|
|
|
|
type Updater struct {
|
|
client *http.Client
|
|
warner common.Warner
|
|
}
|
|
|
|
func New(client *http.Client, warner common.Warner) *Updater {
|
|
return &Updater{
|
|
client: client,
|
|
warner: warner,
|
|
}
|
|
}
|
|
|
|
func (u *Updater) Version() uint16 {
|
|
return 6 //nolint:mnd
|
|
}
|