add dns handler
This commit is contained in:
11
pkg/resolver/resolver.go
Normal file
11
pkg/resolver/resolver.go
Normal file
@ -0,0 +1,11 @@
|
||||
package resolver
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
type Resolver interface {
|
||||
// Resolve returns a slice of the host's IPv4 and IPv6 addresses.
|
||||
Resolve(ctx context.Context, host string) ([]net.IP, error)
|
||||
}
|
Reference in New Issue
Block a user