Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFoundDomain domain is not found ErrNotFoundDomain = errors.New("whoisparser: domain is not found") // ErrReservedDomain domain is reserved ErrReservedDomain = errors.New("whoisparser: domain is reserved to register") // ErrPremiumDomain domain is available to register at premium price ErrPremiumDomain = errors.New("whoisparser: domain is available at premium price") // ErrBlockedDomain domain is blocked due to brand protection ErrBlockedDomain = errors.New("whoisparser: domain is blocked due to brand protection") // ErrDomainDataInvalid domain whois data is invalid ErrDomainDataInvalid = errors.New("whoisparser: domain whois data is invalid") // ErrDomainLimitExceed domain whois query is limited ErrDomainLimitExceed = errors.New("whoisparser: domain whois query limit exceeded") )
Functions ¶
Types ¶
type Contact ¶
type Contact struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Organization string `json:"organization,omitempty"` Street string `json:"street,omitempty"` City string `json:"city,omitempty"` Province string `json:"province,omitempty"` PostalCode string `json:"postal_code,omitempty"` Country string `json:"country,omitempty"` Phone string `json:"phone,omitempty"` PhoneExt string `json:"phone_ext,omitempty"` Fax string `json:"fax,omitempty"` FaxExt string `json:"fax_ext,omitempty"` Email string `json:"email,omitempty"` ReferralURL string `json:"referral_url,omitempty"` }
Contact storing domain contact info
type Domain ¶
type Domain struct { ID string `json:"id,omitempty"` Domain string `json:"domain,omitempty"` Punycode string `json:"punycode,omitempty"` Name string `json:"name,omitempty"` Extension string `json:"extension,omitempty"` WhoisServer string `json:"whois_server,omitempty"` Status []string `json:"status,omitempty"` NameServers []string `json:"name_servers,omitempty"` DNSSec bool `json:"dnssec,omitempty"` CreatedDate string `json:"created_date,omitempty"` CreatedDateInTime *time.Time `json:"created_date_in_time,omitempty"` UpdatedDate string `json:"updated_date,omitempty"` UpdatedDateInTime *time.Time `json:"updated_date_in_time,omitempty"` ExpirationDate string `json:"expiration_date,omitempty"` ExpirationDateInTime *time.Time `json:"expiration_date_in_time,omitempty"` }
Domain storing domain name info
type WhoisInfo ¶
type WhoisInfo struct { Domain *Domain `json:"domain,omitempty"` Registrar *Contact `json:"registrar,omitempty"` Registrant *Contact `json:"registrant,omitempty"` Administrative *Contact `json:"administrative,omitempty"` Technical *Contact `json:"technical,omitempty"` Billing *Contact `json:"billing,omitempty"` }
WhoisInfo storing domain whois info
Click to show internal directories.
Click to hide internal directories.