15 lines
284 B
Go
15 lines
284 B
Go
package common
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
var ErrNotEnoughServers = errors.New("not enough servers found")
|
|
|
|
type ParallelResolver interface {
|
|
Resolve(ctx context.Context, hosts []string, minToFind int) (
|
|
hostToIPs map[string][]net.IP, warnings []string, err error)
|
|
}
|