chore(resolver): export structs instead of interfaces

This commit is contained in:
Quentin McGaw
2022-06-09 03:10:56 +00:00
parent 415cb7a945
commit 899f10c35e
37 changed files with 114 additions and 130 deletions

View File

@@ -1,5 +1,14 @@
package common
import "errors"
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)
}