Alejandro Mery
1 year ago
2 changed files with 19 additions and 3 deletions
@ -0,0 +1,17 @@ |
|||||||
|
package cluster |
||||||
|
|
||||||
|
import ( |
||||||
|
"darvaza.org/resolver" |
||||||
|
"darvaza.org/slog" |
||||||
|
"darvaza.org/slog/handlers/discard" |
||||||
|
) |
||||||
|
|
||||||
|
// DefaultLogger returns a logger that doesn't log anything
|
||||||
|
func DefaultLogger() slog.Logger { |
||||||
|
return discard.New() |
||||||
|
} |
||||||
|
|
||||||
|
// DefaultLookuper returns a [resolver.Lookuper] using Cloudflare's 1.1.1.1
|
||||||
|
func DefaultLookuper() resolver.Lookuper { |
||||||
|
return resolver.NewCloudflareLookuper() |
||||||
|
} |
Loading…
Reference in new issue