1
0
Fork 0
mirror of https://gitlab.com/pnx-tools/dns-updater.git synced 2026-06-16 05:54:56 +02:00
dns-updater/ip/resolver/resolver.go

15 lines
262 B
Go

package resolver
import (
"context"
"net"
)
// Interface that IP Lookup Services must implement.
type Service interface {
// Get the name of the serivce
Name() string
// Lookup the public ip.
Lookup(ctx context.Context) (net.IP, error)
}