v2ray-core/app/dns/server/querier.go

21 lines
249 B
Go
Raw Normal View History

2017-10-24 14:15:35 +00:00
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
}