1
0
Fork 0
dns-updater/ip/resolver/resolver.go
Henrik Hautakoski 9961cec561 ip/resolver/resolver.go: move WAN_IFACE constant to app/app.go
resolver.go is library code and should not define (or care) about what is a "WAN" interface or not.
2023-12-07 20:43:48 +01:00

15 lines
247 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)
}