sgwhois

package
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

-------------------------

git: github.com/undiabler/golang-whois

http://undiabler.com

Released under the Apache License, Version 2.0

--------------------------

Index

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 GetCharacterNum(name string) int

func GetIpByDomain

func GetIpByDomain(domain string) (addrs []string, err error)

func IsHightValueDomain

func IsHightValueDomain(name string, zone string) bool

func IsHightValueDomainByName

func IsHightValueDomainByName(domain string) bool

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

func GetWhoisInfo(domain string) (*Whois, error)

func (*Whois) IsEqual

func (data *Whois) IsEqual(other *Whois) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL