mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-24 03:16:31 +02:00
chore(updater): move updater packages to pkg/updaters/<name>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/netip"
|
||||
|
||||
"github.com/qdm12/gluetun/pkg/publicip/models"
|
||||
)
|
||||
|
||||
type Fetcher interface {
|
||||
String() string
|
||||
CanFetchAnyIP() bool
|
||||
Token() (token string)
|
||||
InfoFetcher
|
||||
}
|
||||
|
||||
type InfoFetcher interface {
|
||||
FetchInfo(ctx context.Context, ip netip.Addr) (
|
||||
result models.PublicIP, err error)
|
||||
}
|
||||
|
||||
type Warner interface {
|
||||
Warn(message string)
|
||||
}
|
||||
Reference in New Issue
Block a user