dns

package
v3.50.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientType

func ClientType() interface{}

ClientType returns the type of Client interface. Can be used for implementing common.HasType.

Types

type Client

type Client interface {
	features.Feature
	LookupIP(host string) ([]net.IP, error)
}

Client is a V2Ray feature for querying DNS information.

type LocalClient

type LocalClient struct{}

LocalClient is an implementation of Client, which queries localhost for DNS.

func (LocalClient) Close

func (LocalClient) Close() error

Close implements common.Closable.

func (LocalClient) LookupIP

func (LocalClient) LookupIP(host string) ([]net.IP, error)

LookupIP implements Client.

func (LocalClient) Start

func (LocalClient) Start() error

Start implements common.Runnable.

func (LocalClient) Type

func (LocalClient) Type() interface{}

Type implements common.HasType.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL