mirror of
https://github.com/go-gost/gost.git
synced 2024-08-11 17:48:51 +00:00
12 lines
204 B
Go
12 lines
204 B
Go
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)
|
|
}
|