chore(publicip): less coupling with ipinfo.io
This commit is contained in:
13
internal/publicip/api/interfaces.go
Normal file
13
internal/publicip/api/interfaces.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/netip"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/models"
|
||||
)
|
||||
|
||||
type Fetcher interface {
|
||||
FetchInfo(ctx context.Context, ip netip.Addr) (
|
||||
result models.PublicIP, err error)
|
||||
}
|
||||
Reference in New Issue
Block a user