From 200b3172b7b873603ee626fabe55a34b10a9e18f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 7 Dec 2023 17:31:17 +0100 Subject: [PATCH] ip/resolver/service.go: comments. --- ip/resolver/service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ip/resolver/service.go b/ip/resolver/service.go index 4852363..92aba26 100644 --- a/ip/resolver/service.go +++ b/ip/resolver/service.go @@ -8,12 +8,16 @@ import ( "dnsupdater/ip" ) +// 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" func LookupWrapper(service Service) ip.NetInterfaceIPResolver {