client.go 380 B

1234567891011121314151617
  1. package dns
  2. import (
  3. "v2ray.com/core/common/net"
  4. "v2ray.com/core/features"
  5. )
  6. // Client is a V2Ray feature for querying DNS information.
  7. type Client interface {
  8. features.Feature
  9. LookupIP(host string) ([]net.IP, error)
  10. }
  11. // ClientType returns the type of Client interface. Can be used for implementing common.HasType.
  12. func ClientType() interface{} {
  13. return (*Client)(nil)
  14. }