v2

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACParser

type ACParser struct{}

ACParser handles parsing for the .ac zone WHOIS provider.

func (*ACParser) Parse

func (p *ACParser) Parse(whoisText string) (WhoisInfo, error)

Parse implements the Parser interface for the .ac zone.

type AIParser

type AIParser struct{}

AIParser handles parsing for the .ai zone WHOIS provider.

func (*AIParser) Parse

func (p *AIParser) Parse(whoisText string) (WhoisInfo, error)

Parse implements the Parser interface for the .ai zone.

type AUParser added in v1.30.2

type AUParser struct{}

AUParser handles parsing for the .au zone WHOIS provider.

func (*AUParser) Parse added in v1.30.2

func (p *AUParser) Parse(whoisText string) (WhoisInfo, error)

Parse implements the Parser interface for .gov.au zone.

type AcademyParser added in v1.30.2

type AcademyParser struct{}

AcademyParser handles parsing for the .academy zone WHOIS provider.

func (*AcademyParser) Parse added in v1.30.2

func (p *AcademyParser) Parse(whoisText string) (WhoisInfo, error)

Parse implements the Parser interface for the .academy zone.

type AeroParser

type AeroParser struct{}

AeroParser handles parsing for the .aero zone WHOIS provider.

func (*AeroParser) Parse

func (p *AeroParser) Parse(whoisText string) (WhoisInfo, error)

Parse implements the Parser interface for .aero zone.

type AsiaParser added in v1.30.2

type AsiaParser struct{}

AsiaParser handles parsing for the .asia zone WHOIS provider.

func (*AsiaParser) Parse added in v1.30.2

func (p *AsiaParser) Parse(whoisText string) (WhoisInfo, error)

Parse implements the Parser interface for the .asia zone.

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 MDParser

type MDParser struct{}

func (*MDParser) Parse

func (p *MDParser) Parse(whoisText string) (WhoisInfo, error)

Parse implements the Parser interface for .md zones.

type Parser

type Parser interface {
	Parse(whoisText string) (WhoisInfo, error)
}

func NewParser

func NewParser(zone string) Parser

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳