whois

package
v0.0.0-...-c5940aa Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parsed

type Parsed struct {
	Registrant
	Registrar
}

type Registrant

type Registrant struct {
	RegistrantID   string `json:"registrant_id"`
	RegistrantName string `json:"registrant_name"`
	Organization   string `json:"organization"`
	Street         string `json:"street"`
	StreetExt      string `json:"street_ext"`
	City           string `json:"city"`
	Province       string `json:"province"`
	PostalCode     string `json:"postal_code"`
	Country        string `json:"country"`
	Phone          string `json:"phone"`
	PhoneExt       string `json:"phone_ext"`
	Fax            string `json:"fax"`
	FaxExt         string `json:"fax_ext"`
	Email          string `json:"email"`
}

Registrant storing registrant info

type Registrar

type Registrar struct {
	RegistrarID    string `json:"registrar_id"`
	RegistrarName  string `json:"registrar_name"`
	WhoisServer    string `json:"whois_server"`
	ReferralURL    string `json:"referral_url"`
	DomainId       string `json:"domain_id"`
	DomainName     string `json:"domain_naame"`
	DomainStatus   string `json:"domain_status"`
	NameServers    string `json:"name_servers"`
	DomainDNSSEC   string `json:"domain_dnssec"`
	CreatedDate    string `json:"created_date"`
	UpdatedDate    string `json:"updated_date"`
	ExpirationDate string `json:"expiration_date"`
}

Registrar storing registrar info

type Whois

type Whois struct {
	Raw string
	Parsed
}

func Get

func Get(domain string) (Whois, error, time.Duration)

func MakeByJson

func MakeByJson(j []byte) (Whois, error)

func MakeByString

func MakeByString(s string) (Whois, error)

func (Whois) IsLike

func (w Whois) IsLike(w2 Whois) bool

func (Whois) String

func (w Whois) String() string

func (Whois) ToJson

func (w Whois) ToJson() []byte

Jump to

Keyboard shortcuts

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