Files
weave-scope/probe/endpoint/dns_snooper_others.go
Bryan Boreham bcdf2caa61 Make lint happy
Mostly new-style Go build directives

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-03-14 18:52:10 +00:00

27 lines
753 B
Go

//go:build darwin || arm || arm64 || s390x
// +build darwin arm arm64 s390x
// Cross-compiling the snooper requires having pcap binaries,
// let's disable it for now.
// See http://stackoverflow.com/questions/31648793/go-programming-cross-compile-for-revel-framework
package endpoint
// DNSSnooper is a snopper of DNS queries
type DNSSnooper struct{}
// NewDNSSnooper creates a new snooper of DNS queries
func NewDNSSnooper() (*DNSSnooper, error) {
return nil, nil
}
// CachedNamesForIP obtains the domains associated to an IP,
// obtained while snooping A-record queries
func (s *DNSSnooper) CachedNamesForIP(ip string) []string {
return []string{}
}
// Stop makes the snooper stop inspecting DNS communications
func (s *DNSSnooper) Stop() {
}