Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DnsResolver ¶
type DnsResolver interface { Register(domain string) error Unregister(domain string) Lookup(domain string) ([]net.IP, error) Start() Close() SetResolver(mockDns *MockResolver) }
func NewDnsResolver ¶
func NewDnsResolver(name string, logger logging.LoggerFactory) DnsResolver
NewDnsResolver creates a new DNS resolver
type MockResolver ¶
for testing
func (*MockResolver) LookupCNAME ¶
func (m *MockResolver) LookupCNAME(domain string) (string, error)
func (*MockResolver) LookupHost ¶
func (m *MockResolver) LookupHost(domain string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.