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

19 lines
234 B
Go

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