gois

package module
v0.0.0-...-8a55348 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 8 Imported by: 0

README

gois

Golang whois client

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TLDWhoisServers = map[string]string{}/* 171 elements not displayed */

TLDWhoisServers is a map containing all the public server records taken from: http://www.nirsoft.net/whois-servers.txt

Functions

func WhoisBulk

func WhoisBulk(domains []string) map[string]*Record

WhoisBulk concurrently requests whois information for the given domains

Types

type GenericServer

type GenericServer struct {
	TLD    string
	Server string
}

func (*GenericServer) Query

func (s *GenericServer) Query(domain string) (*Record, error)

type Record

type Record struct {
	Domain     string
	CreatedOn  *time.Time
	UpdatedOn  *time.Time
	ExpiresOn  *time.Time
	Registered bool
	Status     string
}

Record holds the information returned by the whois server

func NewRecord

func NewRecord(domain string, keyValues map[string]string) *Record

NewRecord creates a new record from a list of key/value strings

func Whois

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

Whois returns the public whois information for a domain

type Server

type Server interface {
	Query(string) (*Record, error)
}

func ServerForDomain

func ServerForDomain(domain string) (Server, error)

func ServerForTLD

func ServerForTLD(domain string) (Server, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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