core/hosts/hosts.go
2022-04-04 11:30:31 +08:00

11 lines
159 B
Go

package hosts
import (
"net"
)
// HostMapper is a mapping from hostname to IP.
type HostMapper interface {
Lookup(network, host string) ([]net.IP, bool)
}