Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLogLevel ¶
Types ¶
type DDNSConfig ¶
type DDNSConfig struct { LoggingConfig LoggingConfig `mapstructure:"logging"` Providers []DomainProviderConfig Strategy *IPMatchingConfig `mapstructure:"strategy"` // contains filtered or unexported fields }
DDNS Config
func (*DDNSConfig) GetLogConfig ¶
func (dc *DDNSConfig) GetLogConfig() *LoggingConfig
func (*DDNSConfig) GetRootConfig ¶
func (dc *DDNSConfig) GetRootConfig() *viper.Viper
GetConfig returns configuration
type DomainProviderConfig ¶
type IPMatchingConfig ¶
type IPMatchingConfig struct { V4Strategy IPMatchingStrategy `mapstructure:"ipv4"` V6Strategy IPMatchingStrategy `mapstructure:"ipv6"` }
type IPMatchingStrategy ¶
type IPMatchingStrategy struct { Type IPMatchingStrategyKey PrefixLength int }
type IPMatchingStrategyKey ¶
type IPMatchingStrategyKey string
const (
Prefix IPMatchingStrategyKey = "prefix"
)
type LoggingConfig ¶
func (*LoggingConfig) GetLogLevel ¶
func (c *LoggingConfig) GetLogLevel() zapcore.Level
Click to show internal directories.
Click to hide internal directories.