config

package
v0.0.0-...-54a9f1b Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 3 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 {
	Domains []struct {
		Name       string `yaml:"name"`
		Interfaces []struct {
			IfName        string   `yaml:"ifName"`
			MatchUnknown4 bool     `yaml:"matchUnknown4"`
			MatchUnknown6 bool     `yaml:"matchUnknown6"`
			Match4        []string `yaml:"match4"`
			Match6        []string `yaml:"match6"`
		} `yaml:"interfaces"`
	} `yaml:"domains"`
	Loopia struct {
		Username string `yaml:"username"`
		Password string `yaml:"password"`
	} `yaml:"loopia"`
	ExecuteOnChange string `yaml:"executeOnChange"`
}

func ReadConfig

func ReadConfig(fileName string) (Config, error)

func (*Config) SanityCheck

func (c *Config) SanityCheck()

Jump to

Keyboard shortcuts

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