1
0
Fork 0
dns-updater/ip/resolver/resolver.go
2023-12-07 19:45:29 +01:00

18 lines
319 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)
}
// Constant name for the virtual WAN interface
const WAN_IFACE = "wan"