params

package
v0.0.0-...-542e895 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProviderNoLongerSupported = errors.New("provider no longer supported")
	ErrDomainBlank               = errors.New("domain cannot be blank for provider")
)
View Source
var (
	ErrIPv6PrefixFormat = errors.New("IPv6 prefix format is incorrect")
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(s string)
	Debug(s string)
}

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(logger Logger) *Reader

func (*Reader) JSONProviders

func (r *Reader) JSONProviders(filePath string) (
	providers []provider.Provider, warnings []string, err error)

JSONProviders obtain the update settings from the JSON content, first trying from the environment variable CONFIG and then from the file config.json.

Jump to

Keyboard shortcuts

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