2022-06-11 01:34:30 +00:00
|
|
|
package publicip
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"net"
|
|
|
|
|
|
2022-06-12 00:53:39 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/publicip/ipinfo"
|
2022-06-11 01:34:30 +00:00
|
|
|
)
|
|
|
|
|
|
2022-06-12 00:09:01 +00:00
|
|
|
type Fetcher interface {
|
|
|
|
|
FetchInfo(ctx context.Context, ip net.IP) (
|
2022-06-12 00:53:39 +00:00
|
|
|
result ipinfo.Response, err error)
|
2022-06-11 01:34:30 +00:00
|
|
|
}
|