core/hosts/hosts.go
2023-04-18 20:46:44 +08:00

12 lines
191 B
Go

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