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 Pattern
- type Result
- type Scanner
- type Stats
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.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.
View Source
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 ¶
Click to show internal directories.
Click to hide internal directories.