Documentation
¶
Overview ¶
Package dns provides DNS diagnostic functionality
Package dns provides TUI model for DNS diagnostic tool
Index ¶
- func FormatDNSResult(result domain.DNSResult) string
- func GetRecordTypeString(recordType domain.DNSRecordType) string
- func ParseRecordTypeString(recordTypeStr string) (domain.DNSRecordType, error)
- func ValidateDNSRecord(record domain.DNSRecord) error
- func ValidateDNSResult(result domain.DNSResult) error
- type Model
- type ModelState
- type ResultTab
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDNSResult ¶
FormatDNSResult formats DNS result for display
func GetRecordTypeString ¶
func GetRecordTypeString(recordType domain.DNSRecordType) string
GetRecordTypeString returns a human-readable string for a DNS record type
func ParseRecordTypeString ¶
func ParseRecordTypeString(recordTypeStr string) (domain.DNSRecordType, error)
ParseRecordTypeString parses a string into a DNS record type
func ValidateDNSRecord ¶
ValidateDNSRecord validates a single DNS record
func ValidateDNSResult ¶
ValidateDNSResult validates that a DNS result contains expected data
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the DNS tool TUI model
type ModelState ¶
type ModelState int
ModelState represents the current state of the model
const ( StateInput ModelState = iota StateTypeSelection StateLoading StateResult StateError )
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool implements the DiagnosticTool interface for DNS operations
func NewTool ¶
func NewTool(client domain.NetworkClient, logger domain.Logger) *Tool
NewTool creates a new DNS diagnostic tool
func (*Tool) Description ¶
Description returns the tool description
Click to show internal directories.
Click to hide internal directories.