mirror of https://github.com/v2ray/v2ray-core
21 lines
249 B
Go
21 lines
249 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"v2ray.com/core/common/net"
|
||
|
)
|
||
|
|
||
|
type IPResult struct {
|
||
|
IP []net.IP
|
||
|
TTL time.Duration
|
||
|
}
|
||
|
|
||
|
type Querier interface {
|
||
|
QueryDomain(domain string) <-chan *IPResult
|
||
|
}
|
||
|
|
||
|
type UDPQuerier struct {
|
||
|
server net.Destination
|
||
|
}
|