Maint: package local narrow Logger interfaces

This commit is contained in:
Quentin McGaw (desktop)
2021-09-23 16:58:21 +00:00
parent d8e008606f
commit cf95692b93
57 changed files with 414 additions and 154 deletions

View File

@@ -9,7 +9,6 @@ import (
"github.com/qdm12/gluetun/internal/loopstate"
"github.com/qdm12/gluetun/internal/models"
"github.com/qdm12/gluetun/internal/publicip/state"
"github.com/qdm12/golibs/logging"
)
var _ Looper = (*Loop)(nil)
@@ -29,7 +28,7 @@ type Loop struct {
// Objects
fetcher Fetcher
client *http.Client
logger logging.Logger
logger Logger
// Fixed settings
puid int
pgid int
@@ -47,7 +46,7 @@ type Loop struct {
const defaultBackoffTime = 5 * time.Second
func NewLoop(client *http.Client, logger logging.Logger,
func NewLoop(client *http.Client, logger Logger,
settings configuration.PublicIP, puid, pgid int) *Loop {
start := make(chan struct{})
running := make(chan models.LoopStatus)