mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-25 03:46:22 +02:00
chore(updater): move updater packages to pkg/updaters/<name>
This commit is contained in:
@@ -7,15 +7,16 @@ import (
|
||||
|
||||
"github.com/qdm12/gluetun/internal/constants/providers"
|
||||
"github.com/qdm12/gluetun/internal/provider/common"
|
||||
"github.com/qdm12/gluetun/internal/provider/privateinternetaccess/updater"
|
||||
"github.com/qdm12/gluetun/internal/provider/utils"
|
||||
updaters "github.com/qdm12/gluetun/pkg/updaters/common"
|
||||
"github.com/qdm12/gluetun/pkg/updaters/providers/privateinternetaccess"
|
||||
)
|
||||
|
||||
type Provider struct {
|
||||
storage common.Storage
|
||||
connPicker *utils.ConnectionPicker
|
||||
timeNow func() time.Time
|
||||
common.Fetcher
|
||||
updaters.Fetcher
|
||||
// Port forwarding
|
||||
portForwardPath string
|
||||
apiIP netip.Addr
|
||||
@@ -30,7 +31,7 @@ func New(storage common.Storage, timeNow func() time.Time,
|
||||
timeNow: timeNow,
|
||||
connPicker: utils.NewConnectionPicker(),
|
||||
portForwardPath: jsonPortForwardPath,
|
||||
Fetcher: updater.New(client),
|
||||
Fetcher: privateinternetaccess.New(client),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user