config

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel      logrus.Level
	ListenAddress string
	Rules         map[dns.Type][]RegexRule
}

func ReadConfig

func ReadConfig() (*Config, error)

type RegexRule

type RegexRule struct {
	Regex *regexp.Regexp
	Rule  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL