You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
392 B
18 lines
392 B
1 year ago
|
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()
|
||
|
}
|