Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FallbackResolver ¶
type FallbackResolver metaResolver
FallbackResolver is ...
func (*FallbackResolver) DialContext ¶
func (r *FallbackResolver) DialContext(ctx context.Context, network, addr string) (conn net.Conn, err error)
DialContext is ...
type Resolver ¶
type Resolver interface { // Resolve is ... // resolve dns query in byte slice and store answers to the incoming byte slice // for compatible reason, the first 2 bytes are reserved for length space for // dns over tcp and dns over tls, the input length is the length of dns message // without 2 prefix bytes, and the output length also does not include the prefix bytes Resolve([]byte, int) (int, error) // DialContext is ... // net.Resovler.Dial DialContext(context.Context, string, string) (net.Conn, error) }
Resolver is ...
func NewMultiResolver ¶
NewMultiResolver is ...
Click to show internal directories.
Click to hide internal directories.