Maint: add missing interface compilation checks

This commit is contained in:
Quentin McGaw (laptop)
2021-07-24 19:54:15 +00:00
parent 7b20cec035
commit 8105437815
4 changed files with 8 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ import (
"github.com/qdm12/golibs/logging"
)
var _ Looper = (*Loop)(nil)
type Looper interface {
Runner
loopstate.Getter

View File

@@ -6,6 +6,8 @@ import (
"github.com/qdm12/gluetun/internal/models"
)
var _ Manager = (*State)(nil)
type Manager interface {
Locker
Getter

View File

@@ -15,6 +15,8 @@ import (
"github.com/qdm12/golibs/logging"
)
var _ Looper = (*Loop)(nil)
type Looper interface {
Runner
loopstate.Getter

View File

@@ -12,6 +12,8 @@ import (
"strings"
)
var _ Fetcher = (*Fetch)(nil)
type Fetcher interface {
FetchPublicIP(ctx context.Context) (ip net.IP, err error)
}