Documentation ¶
Overview ¶
Package whois provides WHOIS functionality.
Index ¶
Constants ¶
View Source
const ( // DefaultServer is the default WHOIS server. DefaultServer = "whois.arin.net" // DefaultPort is the default port for WHOIS requests. DefaultPort = 43 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Logger is used for logging the operation of the WHOIS lookup queries. It // must not be nil. Logger *slog.Logger // DialContext is used to create TCP connections to WHOIS servers. DialContext aghnet.DialContextFunc // ServerAddr is the address of the WHOIS server. ServerAddr string // Timeout is the timeout for WHOIS requests. Timeout time.Duration // CacheTTL is the Time to Live duration for cached IP addresses. CacheTTL time.Duration // MaxConnReadSize is an upper limit in bytes for reading from net.Conn. MaxConnReadSize uint64 // MaxRedirects is the maximum redirects count. MaxRedirects int // MaxInfoLen is the maximum length of Info fields returned by Process. MaxInfoLen int // CacheSize is the maximum size of the cache. It must be greater than // zero. CacheSize int // Port is the port for WHOIS requests. Port uint16 }
Config is the configuration structure for Default.
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
Default is the default WHOIS information processor.
Click to show internal directories.
Click to hide internal directories.