scanner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers = map[string]string{
	"com": "https://rdap.verisign.com/com/v1/domain/",
	"net": "https://rdap.verisign.com/net/v1/domain/",
	"org": "https://rdap.org/domain/",
	"dev": "https://rdap.nic.google/domain/",
	"app": "https://rdap.nic.google/domain/",
	"io":  "https://rdap.nic.io/domain/",
	"co":  "https://rdap.nic.co/domain/",
	"xyz": "https://rdap.nic.xyz/domain/",
}

RDAP providers by TLD. 404 = available, 200 = taken.

View Source
var SupportedTLDs = []string{"com", "net", "org", "dev", "app", "io", "co", "xyz"}

Functions

func GenerateDomains

func GenerateDomains(length int, pattern Pattern, tlds []string) []string

GenerateDomains produces pronounceable domain names for the given config.

Types

type Pattern

type Pattern string
const (
	PatternCVC   Pattern = "CVC"
	PatternVCV   Pattern = "VCV"
	PatternCVCV  Pattern = "CVCV"
	PatternCVCVC Pattern = "CVCVC"
	PatternAll   Pattern = "ALL"
)

type Result

type Result struct {
	Domain    string
	TLD       string
	Available bool
	Error     bool
	Timestamp time.Time
}

type Scanner

type Scanner struct {
	OnResult func(Result)
	Done     chan struct{}
	// contains filtered or unexported fields
}

func New

func New(workers int) *Scanner

func (*Scanner) Results

func (s *Scanner) Results() []Result

func (*Scanner) Run

func (s *Scanner) Run(domains []string)

func (*Scanner) Stats

func (s *Scanner) Stats() Stats

type Stats

type Stats struct {
	Checked   int64
	Available int64
	Errors    int64
	Total     int
	StartTime time.Time
}

Jump to

Keyboard shortcuts

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