Documentation
¶
Overview ¶
Package hostsfile implements a high-performance hosts file resolver with advanced features like wildcard support and automatic reloading
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostEntry ¶ added in v1.5.1
type HostEntry struct {
Name string
IPv4 []net.IP
IPv6 []net.IP
Aliases []string
Comment string
LineNo int
Timestamp time.Time
}
HostEntry represents a single host with multiple IPs and metadata.
type HostsDB ¶ added in v1.5.1
type HostsDB struct {
// contains filtered or unexported fields
}
HostsDB is an in-memory database for hosts entries Unlike traditional implementations, we support wildcards and aliases.
type Hostsfile ¶
type Hostsfile struct {
// contains filtered or unexported fields
}
Hostsfile middleware provides local name resolution.
Click to show internal directories.
Click to hide internal directories.