Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hosts ¶
type Hosts struct {
// contains filtered or unexported fields
}
func NewHosts ¶
NewHosts creates a hosts using m. The returned v from m.Match() must be the type of IPs.
e.g. m := domain.NewMixMatcher() domain.BatchLoadMatcher(m, []string{"localhost 127.0.0.1"}, ParseIP)
func NewHostsFromEntries ¶
func NewHostsFromFiles ¶
Click to show internal directories.
Click to hide internal directories.