Documentation
¶
Overview ¶
-------------------------
Copyright 2015, undiabler ¶
git: github.com/undiabler/golang-whois
Released under the Apache License, Version 2.0 ¶
--------------------------
Index ¶
- Constants
- func GetCharacterNum(name string) int
- func GetIpByDomain(domain string) (addrs []string, err error)
- func IsHightValueDomain(name string, zone string) bool
- func IsHightValueDomainByName(domain string) bool
- func ParseWhois(info *Whois)
- func ParseWhoisCn(info *Whois)
- func ParseWhoisCom(info *Whois)
- func ShowWhoisInfo(data *Whois)
- type Whois
Constants ¶
View Source
const SG_WHOIS_STATUS_CAN_REGIST_NOW int = 0
View Source
const SG_WHOIS_STATUS_CHECK_FAILD int = -1
View Source
const SG_WHOIS_STATUS_HAD_REGIST int = 1
View Source
const SG_WHOIS_STATUS_LIMIT_BY_GOVERNMENT int = 2
Variables ¶
This section is empty.
Functions ¶
func GetCharacterNum ¶
func GetIpByDomain ¶
func IsHightValueDomain ¶
func ParseWhois ¶
func ParseWhois(info *Whois)
func ParseWhoisCn ¶
func ParseWhoisCn(info *Whois)
func ParseWhoisCom ¶
func ParseWhoisCom(info *Whois)
func ShowWhoisInfo ¶
func ShowWhoisInfo(data *Whois)
Types ¶
type Whois ¶
type Whois struct { Raw string //域名查询返回的整个字符串信息 Name string Zone string Domain string CreateDtStr string UpdateDtStr string ExpiryDtStr string OldExpiryDtStr string IsRegist int // 1:已注册 0:未注册 -1:查询失败 2:该域名为后缀域名,无法注册 Name_length int CreateDt *sgtime.DateTime UpdateDt *sgtime.DateTime ExpiryDt *sgtime.DateTime }
func GetWhoisInfo ¶
Click to show internal directories.
Click to hide internal directories.