Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct { Registry Registry `json:"tld,omitempty"` Nameservers Nameservers `json:"nameservers,omitempty"` SOA *Soa `json:"SOA,omitempty"` DSRecordCount int `json:"DSRecordCount,omitempty"` DNSKEYRecordCount int `json:"DNSKEYRecordCount,omitempty"` DomainDS []*DomainDS `json:"DomainDS,omitempty"` DomainDNSKEY []*DomainDNSKEY `json:"DomainDNSKEY,omitempty"` DomainCalcDS []*DomainCalcDS `json:"DomainCalcDS,omitempty"` DomainA []string `json:"DomainA,omitempty"` DomainAAAA []string `json:"DomainAAAA,omitempty"` DomainMX []string `json:"DomainMX,omitempty"` Email Email `json:"Email,omitempty"` TLSARecords []*Tlsa `json:"TLSARecords,omitempty"` }
Answer struct the answer of the question.
type Controls ¶
type Controls struct { Shortcode string `json:"shortcode,omitempty"` Group string `json:"group,omitempty"` Description string `json:"description,omitempty"` Points int `json:"points,omitempty"` }
Controls struct check information
type DomainCalcDS ¶
type DomainCalcDS struct { Algorithm uint8 `json:"Algorithm,omitempty"` Digest string `json:"Digest,omitempty"` DigestType uint8 `json:"DigestType,omitempty"` KeyTag uint16 `json:"KeyTag,omitempty"` }
DomainCalcDS struct
type DomainDNSKEY ¶
type DomainDNSKEY struct { Algorithm uint8 `json:"Algorithm,omitempty"` Flags uint16 `json:"Flags,omitempty"` Protocol uint8 `json:"Protocol,omitempty"` PublicKey string `json:"PublicKey,omitempty"` }
DomainDNSKEY struct
type DomainDS ¶
type DomainDS struct { Algorithm uint8 `json:"Algorithm,omitempty"` Digest string `json:"Digest,omitempty"` DigestType uint8 `json:"DigestType,omitempty"` KeyTag uint16 `json:"KeyTag,omitempty"` }
DomainDS struct
type Email ¶
type Email struct { MX []string `json:"MX,omitempty"` SPF []string `json:"SPF,omitempty"` DMARC []string `json:"DMARC,omitempty"` }
Email struct
type Message ¶
type Message struct { Question Question `json:"question"` Answer Answer `json:"answer"` Controls []*Controls `json:"controls"` }
Message struct for returning the question and the answer.
type Nameservers ¶
type Nameservers struct { Root []string `json:"root,omitempty"` Registry []string `json:"registry,omitempty"` Domain []string `json:"domain,omitempty"` Domain2 []string `json:"domain2,omitempty"` }
Nameservers struct for information
type Question ¶
type Question struct { JobDomain string `json:"domain"` JobStatus string `json:"status"` JobMessage string `json:"message"` JobTime time.Time `json:"time"` }
Question struct for retuning what information is asked.
type Soa ¶
type Soa struct { Ns string `json:"ns,omitempty"` Mbox string `json:"mbox,omitempty"` Serial uint32 `json:"serial,omitempty"` Refresh uint32 `json:"refresh,omitempty"` Retry uint32 `json:"retry,omitempty"` Expire uint32 `json:"expire,omitempty"` Minttl uint32 `json:"minttl,omitempty"` }
Soa struct for SOA information aquired from the nameserver.
Click to show internal directories.
Click to hide internal directories.