Maint: add missing interface compilation checks
This commit is contained in:
@@ -13,6 +13,8 @@ import (
|
|||||||
"github.com/qdm12/golibs/logging"
|
"github.com/qdm12/golibs/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ Looper = (*Loop)(nil)
|
||||||
|
|
||||||
type Looper interface {
|
type Looper interface {
|
||||||
Runner
|
Runner
|
||||||
loopstate.Getter
|
loopstate.Getter
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import (
|
|||||||
"github.com/qdm12/gluetun/internal/models"
|
"github.com/qdm12/gluetun/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ Manager = (*State)(nil)
|
||||||
|
|
||||||
type Manager interface {
|
type Manager interface {
|
||||||
Locker
|
Locker
|
||||||
Getter
|
Getter
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import (
|
|||||||
"github.com/qdm12/golibs/logging"
|
"github.com/qdm12/golibs/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ Looper = (*Loop)(nil)
|
||||||
|
|
||||||
type Looper interface {
|
type Looper interface {
|
||||||
Runner
|
Runner
|
||||||
loopstate.Getter
|
loopstate.Getter
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ Fetcher = (*Fetch)(nil)
|
||||||
|
|
||||||
type Fetcher interface {
|
type Fetcher interface {
|
||||||
FetchPublicIP(ctx context.Context) (ip net.IP, err error)
|
FetchPublicIP(ctx context.Context) (ip net.IP, err error)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user