net/dns/resolver: rename ResolverConfig to just Config.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-03-31 21:58:16 -07:00
parent d99f5b1596
commit bc81dd4690
3 changed files with 13 additions and 13 deletions

View File

@ -82,8 +82,8 @@ type Resolver struct {
dnsMap *Map
}
// ResolverConfig is the set of configuration options for a Resolver.
type ResolverConfig struct {
// Config is the set of configuration options for a Resolver.
type Config struct {
// Logf is the logger to use throughout the Resolver.
Logf logger.Logf
// Forward determines whether the resolver will forward packets to
@ -97,7 +97,7 @@ type ResolverConfig struct {
// New constructs a resolver associated with the given root domain.
// The root domain must be in canonical form (with a trailing period).
func New(config ResolverConfig) *Resolver {
func New(config Config) *Resolver {
r := &Resolver{
logf: logger.WithPrefix(config.Logf, "dns: "),
linkMon: config.LinkMonitor,