1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-07-12 12:17:41 -04:00
Files
v2fly/app/dns/server/querier.go
2017-10-24 16:15:35 +02:00

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
}