Documentation
¶
Overview ¶
Package options contains the options (and default values) used to configure DNS and Certificate management
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger logging.Logger
DefaultLogger is the default Logger
View Source
var DefaultStorage storage.Storage
DefaultStorage is the default Storage
View Source
var DefaultTrustedNameServers = []string{
"8.8.8.8:53",
"8.8.4.4:53",
"1.1.1.1:53",
"1.0.0.1:53",
}
DefaultTrustedNameServers is the default TrustedNameServers
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *Options)
Option is used to generate options internally
func WithOptions ¶
WithOptions allows users to pass in an Options struct
func WithTrustedNameservers ¶
WithTrustedNameservers sets the TrustedNameservers
type Options ¶
Options is used to provide configuration options.
Default Values:
options := Options { Logger: DefaultLogger, Storage: DefaultStorage, TrustedNameServers: DefaultTrustedNameServers, }
func LoadOptions ¶
LoadOptions takes a variadic number of Option variables and returns a *Options struct that contains default sanitized values.
Click to show internal directories.
Click to hide internal directories.