Documentation
¶
Index ¶
- Constants
- func AppendIfHostMissing(slice []string, key string) []string
- func ExtractTLDAndSubdomainFromString(str string) (string, string)
- func GetDocumentFromFile(filename string) *jsonquery.Node
- type Config
- type DKIM
- type DNSRecord
- 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
- type Duplicate
- type MailRecord
- type Options
- type Processor
- type SOA
- type SimpleHTTPXEntry
Constants ¶
View Source
const VERSION = "0.3.0"
Variables ¶
This section is empty.
Functions ¶
func AppendIfHostMissing ¶
func GetDocumentFromFile ¶
Types ¶
type DNSRecord ¶
type DNSRecord struct {
Host string `json:"Host"`
CNAME []string `json:"CNAMES,omitempty"`
IPv4Addresses []string `json:"IPv4Addresses,omitempty"`
IPv6Addresses []string `json:"IPv6Addresses,omitempty"`
WhoisInfo string `json:"WhoisInfo,omitempty"`
}
func GetDNSRecordForHostname ¶
type DPUXEntry ¶
type DPUXEntry struct {
Host string `json:"host"`
TXT []string `json:"txt"`
CNAME []string `json:"cname"`
MX []string `json:"mx"`
A []string `json:"a"`
AAAA []string `json:"aaaa"`
Resolver []string `json:"resolver"`
SOA []SOA `json:"soa"`
TTL int `json:"ttl"`
StatusCode string `json:"status_code"`
Timestamp string `json:"timestamp"`
}
func GetDPUXEntry ¶
type Duplicate ¶
type Duplicate struct {
Hostname string `json:"hostname,omitempty"`
IP string `json:"ip,omitempty"`
URL string `json:"url,omitempty"`
BodyHash string `json:"bodyHash,omitempty"`
ContentLength int `json:"contentLength,omitempty"`
Lines int `json:"lines,omitempty"`
Words int `json:"words,omitempty"`
Status int `json:"status,omitempty"`
DuplicateHosts []string `json:"duplicateHosts,omitempty"`
}
type MailRecord ¶
type Options ¶
type Options struct {
SettingsFile string
Project string
File string
BaseFolder string
UniqueHostsFile string
OnlyClean bool
OnlyMail bool
OnlyDedup bool
UseCleanedDNS bool
Silent bool
Version bool
NoColor bool
Verbose bool
Debug bool
}
func ParseOptions ¶
func ParseOptions() *Options
ParseOptions parses the command line flags provided by a user
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func (*Processor) CleanAndFind ¶
func (*Processor) CleanDNSEntries ¶
func (p *Processor) CleanDNSEntries()
func (*Processor) CleanDomains ¶
func (p *Processor) CleanDomains(mailRecords []MailRecord, makeCLeanedDNS bool)
func (*Processor) FindMailRecords ¶
func (p *Processor) FindMailRecords() []MailRecord
type SimpleHTTPXEntry ¶
type SimpleHTTPXEntry struct {
Host string
BodyHash string
Status int
ContentLength int
Lines int
Words int
Input string
URL string
Title string
}
func AppendHTTPXEntryIfMissing ¶
func AppendHTTPXEntryIfMissing(entries []SimpleHTTPXEntry, key SimpleHTTPXEntry) []SimpleHTTPXEntry
func CreateSimpleHostEntryFromHTTPX ¶
func CreateSimpleHostEntryFromHTTPX(entryValues map[string]interface{}) SimpleHTTPXEntry
func GetHTTPXEntryForIPAddress ¶
func GetHTTPXEntryForIPAddress(document *jsonquery.Node, ipaddress string) []SimpleHTTPXEntry
Click to show internal directories.
Click to hide internal directories.