Documentation ¶
Index ¶
- type Hosts
- func (h *Hosts) Add(ip netip.Addr, alias ...string)
- func (h *Hosts) DelByAlias(alias string)
- func (h *Hosts) DelByIP(ip netip.Addr)
- func (h *Hosts) GetAlias(ip netip.Addr) []string
- func (h *Hosts) GetIP(alias string) []netip.Addr
- func (h *Hosts) Len() int
- func (h *Hosts) Read(reader io.Reader) error
- func (h *Hosts) String() string
- func (h *Hosts) Write(writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hosts ¶
type Hosts struct {
// contains filtered or unexported fields
}
Hosts is the representation of IP-to-Host and Host-to-IP mappings.
func (*Hosts) DelByAlias ¶
DelByAlias removes all IP addresses (and their aliases) associated with specified alias.
Click to show internal directories.
Click to hide internal directories.