config

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidIPString = errors.New("invalid IP string")

Functions

This section is empty.

Types

type Reader

type Reader interface {
	ReadSettings() (s Settings, err error)
}

func NewReader

func NewReader(logger logging.Logger) Reader

type Settings

type Settings struct {
	Unbound      unbound.Settings
	Blacklist    blacklist.BuilderSettings
	CheckDNS     bool
	UpdatePeriod time.Duration
}

func (*Settings) Lines

func (s *Settings) Lines(indent, subSection string) (lines []string)

func (*Settings) String

func (s *Settings) String() string

Jump to

Keyboard shortcuts

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