dnsmonitor

package
v1.6.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResolverInfo = resolver.ResolverInfo{
	Name: "SystemResolver",
	Type: resolver.ServerTypeMonitor,
}

Functions

This section is empty.

Types

type Answer

type Answer struct {
	RR      *ResourceRecord `json:"rr,omitempty"`
	Raw     string          `json:"raw"`
	IfIndex *int            `json:"ifindex,omitempty"`
}

type DNSMonitor

type DNSMonitor struct {
	// contains filtered or unexported fields
}

func New

func New(instance instance) (*DNSMonitor, error)

func (*DNSMonitor) Flush

func (dl *DNSMonitor) Flush() error

Flush flushes the buffer forcing all events to be processed.

func (*DNSMonitor) Manager

func (dl *DNSMonitor) Manager() *mgr.Manager

Manager returns the module manager.

func (*DNSMonitor) Start

func (dl *DNSMonitor) Start() error

Start starts the module.

func (*DNSMonitor) Stop

func (dl *DNSMonitor) Stop() error

Stop stops the module.

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

type QueryResult

type QueryResult struct {
	Ready              *bool          `json:"ready,omitempty"`
	State              *string        `json:"state,omitempty"`
	Rcode              *int           `json:"rcode,omitempty"`
	Errno              *int           `json:"errno,omitempty"`
	Question           *[]ResourceKey `json:"question,omitempty"`
	CollectedQuestions *[]ResourceKey `json:"collectedQuestions,omitempty"`
	Answer             *[]Answer      `json:"answer,omitempty"`
}

type ResourceKey

type ResourceKey struct {
	Class int    `json:"class"`
	Type  int    `json:"type"`
	Name  string `json:"name"`
}

type ResourceRecord

type ResourceRecord struct {
	Key     ResourceKey `json:"key"`
	Name    *string     `json:"name,omitempty"`
	Address *[]byte     `json:"address,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL