mirror of
https://github.com/go-gost/core.git
synced 2024-08-11 17:44:43 +00:00
16 lines
263 B
Go
16 lines
263 B
Go
package hosts
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
type Options struct{}
|
|
|
|
type Option func(opts *Options)
|
|
|
|
// HostMapper is a mapping from hostname to IP.
|
|
type HostMapper interface {
|
|
Lookup(ctx context.Context, network, host string, opts ...Option) ([]net.IP, bool)
|
|
}
|