Versions in this module Expand all Collapse all v0 v0.3.0 Feb 5, 2025 Changes in this version + const VERSION + func AppendIfHostMissing(slice []string, key string) []string + func ExtractTLDAndSubdomainFromString(str string) (string, string) + func GetDocumentFromFile(filename string) *jsonquery.Node + type Config struct + DpuxFile string + DpuxIPFile string + HttpxDomainsFile string + ProjectsPath string + type DKIM struct + CNAME string + Selector string + TXT string + type DNSRecord struct + CNAME []string + Host string + IPv4Addresses []string + IPv6Addresses []string + WhoisInfo string + func AppendDNSRecordIfMissing(slice []DNSRecord, key DNSRecord) []DNSRecord + func CreateSimpleDNSEntryFromDPUX(record *jsonquery.Node) DNSRecord + func GetDNSRecordForHostname(document *jsonquery.Node, hostname string) DNSRecord + func GetDNSRecordForIPAddress(document *jsonquery.Node, ipaddress string) DNSRecord + type DPUXEntry struct + A []string + AAAA []string + CNAME []string + Host string + MX []string + Resolver []string + SOA []SOA + StatusCode string + TTL int + TXT []string + Timestamp string + func GetDPUXEntry(record *jsonquery.Node) DPUXEntry + type Duplicate struct + BodyHash string + ContentLength int + DuplicateHosts []string + Hostname string + IP string + Lines int + Status int + URL string + Words int + func AppendDuplicatesIfMissing(slice []Duplicate, key Duplicate) []Duplicate + type MailRecord struct + DKIMEntries []DKIM + DMARCEntry []string + Host string + Infos []string + MXRecords []string + SPFEntry string + type Options struct + BaseFolder string + Debug bool + File string + NoColor bool + OnlyClean bool + OnlyDedup bool + OnlyMail bool + Project string + SettingsFile string + Silent bool + UniqueHostsFile string + UseCleanedDNS bool + Verbose bool + Version bool + func ParseOptions() *Options + type Processor struct + func NewProcessor(options *Options) (*Processor, error) + func (p *Processor) CleanAndFind() error + func (p *Processor) CleanDNSEntries() + func (p *Processor) CleanDomains(mailRecords []MailRecord, makeCLeanedDNS bool) + func (p *Processor) CleanFile() + func (p *Processor) FindMailRecords() []MailRecord + type SOA struct + Expire int + Mailbox string + Minttl int + Name string + Ns string + Refresh int + Retry int + Serial int + type SimpleHTTPXEntry struct + BodyHash string + ContentLength int + Host string + Input string + Lines int + Status int + Title string + URL string + Words int + func AppendHTTPXEntryIfMissing(entries []SimpleHTTPXEntry, key SimpleHTTPXEntry) []SimpleHTTPXEntry + func CreateSimpleHostEntryFromHTTPX(entryValues map[string]interface{}) SimpleHTTPXEntry + func GetHTTPXEntryForIPAddress(document *jsonquery.Node, ipaddress string) []SimpleHTTPXEntry