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

ip/resolver/service.go: comments.

This commit is contained in:
Henrik Hautakoski 2023-12-07 17:31:17 +01:00
parent 4731c01684
commit 200b3172b7

View file

@ -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 {