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/mock/service.go
2023-04-28 16:43:49 +02:00

16 lines
199 B
Go

package mock
import "net"
type Service struct {
IP net.IP
Error error
}
func (s Service) Name() string {
return "mock"
}
func (s Service) Lookup() (net.IP, error) {
return s.IP, s.Error
}