2022-06-11 01:34:30 +00:00
|
|
|
package publicip
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2023-05-20 19:58:18 +00:00
|
|
|
"net/netip"
|
2022-06-11 01:34:30 +00:00
|
|
|
|
2024-02-13 11:11:10 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
2022-06-11 01:34:30 +00:00
|
|
|
)
|
|
|
|
|
|
2022-06-12 00:09:01 +00:00
|
|
|
type Fetcher interface {
|
2023-05-20 19:58:18 +00:00
|
|
|
FetchInfo(ctx context.Context, ip netip.Addr) (
|
2024-02-13 11:11:10 +00:00
|
|
|
result models.PublicIP, err error)
|
2022-06-11 01:34:30 +00:00
|
|
|
}
|
2023-09-24 14:55:51 +00:00
|
|
|
|
|
|
|
|
type Logger interface {
|
|
|
|
|
Info(s string)
|
|
|
|
|
Warn(s string)
|
|
|
|
|
Error(s string)
|
|
|
|
|
}
|