Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct { ObjectType string DomainName string Registrar string SponsoringRegistrarIANAID string WhoisServer string ReferralURL string NameServers []string Statuses []string UpdatedDate time.Time CreationDate time.Time ExpirationDate time.Time RegistrarURL string TechContactName string BillingContactName string AdminContactName string RegistrantContactName string FullLookup string DNSSECSigned bool }
Response is a data structre that contains the information that has been parsed from the WHOIS response.
func Query ¶
Query takes a domain to lookup and then returns a response and a list of errors if any.
TODO: Switch the lookup to a map lookup rather than having to keep checking.
func (*Response) AddNameserver ¶
AddNameserver will check if a name server exists in the list of name servers already and if not it will add it.
func (*Response) AddStatus ¶
AddStatus will check if a status exists in the list of statuses already and if not it will add it.
func (*Response) ParseFromWhois ¶
ParseFromWhois tries to extract WHOIS infomration from well formed WHOIS infomration into the data structure that is passed in. TODO: Split up function. TODO: switch the ifelse tree to a switch statment.