Documentation
¶
Index ¶
- Variables
- func Generate(length int, pattern string) []string
- func GenerateAll(tlds []string, length int, pattern string) []string
- func GenerateDomains(length int, pattern Pattern, tlds []string) []string
- func GetRDAPEndpoint(tld string) string
- func InitSupportedTLDs()
- type DomainInfo
- type Pattern
- type Result
- type Scanner
- type Stats
Constants ¶
This section is empty.
Variables ¶
var Providers = map[string]string{
"com": "https://rdap.verisign.com/com/v1/domain/",
"net": "https://rdap.verisign.com/net/v1/domain/",
"org": "https://rdap.publicinterestregistry.org/rdap/domain/",
"dev": "https://pubapi.registry.google/rdap/domain/",
"app": "https://pubapi.registry.google/rdap/domain/",
"io": "https://rdap.nic.io/domain/",
"co": "https://rdap.nic.co/domain/",
"xyz": "https://rdap.centralnic.com/xyz/domain/",
}
Providers is kept for backward compatibility — populated from registry cache.
var SupportedTLDs = []string{"com", "net", "org", "dev", "app", "io", "co", "xyz"}
Functions ¶
func Generate ¶ added in v1.1.0
Generate produces name strings (without TLD) for given length and pattern.
func GenerateAll ¶ added in v1.1.0
GenerateAll creates domains for given TLDs, length, and pattern.
func GenerateDomains ¶
GenerateDomains produces pronounceable domain names for the given config.
func GetRDAPEndpoint ¶ added in v1.2.0
GetRDAPEndpoint resolves the RDAP endpoint for any TLD dynamically. Falls back to the hardcoded Providers map if registry has no data.
func InitSupportedTLDs ¶ added in v1.2.0
func InitSupportedTLDs()
InitSupportedTLDs populates SupportedTLDs from the registry cache.
Types ¶
type DomainInfo ¶ added in v1.5.0
func FetchDomainInfo ¶ added in v1.5.0
func FetchDomainInfo(domain, tld string) *DomainInfo
FetchDomainInfo queries RDAP for registrar/dates info on a taken domain.
type Result ¶
type Result struct {
Domain string
TLD string
Available bool
Error bool
Method string // primary method that determined result
Signatures []string // all methods that confirmed: "DNS_NS", "DNS_A", "DNS_MX", "RDAP", "WHOIS", "SSL"
Timestamp time.Time
Pricing *pricing.PriceResult
Info *DomainInfo
}
func CheckMultiple ¶ added in v1.6.0
CheckMultiple checks multiple domains synchronously (for MCP/API use).
func CheckSingle ¶ added in v1.6.0
CheckSingle checks a single domain synchronously (for MCP/API use).