Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSManager ¶
type DNSManager struct {
// contains filtered or unexported fields
}
DNSManager is used to manage DNS events and save IP resolutions. It exposes an API to resolve IP address to domain name.
func CreateDNSManager ¶
func CreateDNSManager() *DNSManager
func (*DNSManager) ReportDNSEvent ¶
func (dm *DNSManager) ReportDNSEvent(dnsEvent tracerdnstype.Event)
func (*DNSManager) ResolveIPAddress ¶
func (dm *DNSManager) ResolveIPAddress(ipAddr string) (string, bool)
type DNSManagerClient ¶
type DNSManagerClient interface {
ReportDNSEvent(networkEvent tracerdnstype.Event)
}
type DNSManagerMock ¶
type DNSManagerMock struct { }
func CreateDNSManagerMock ¶
func CreateDNSManagerMock() *DNSManagerMock
func (*DNSManagerMock) ReportDNSEvent ¶
func (n *DNSManagerMock) ReportDNSEvent(_ tracerdnstype.Event)
func (*DNSManagerMock) ResolveIPAddress ¶
func (n *DNSManagerMock) ResolveIPAddress(_ string) (string, bool)
type DNSResolver ¶
Click to show internal directories.
Click to hide internal directories.