config

package
v0.0.0-...-f3d68a8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 5 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 {
	Debug        bool                           `yaml:"debug"`
	Router       Router                         `yaml:"router"`
	NotifyScript string                         `yaml:"notify_script"`
	CheckPeriod  time.Duration                  `yaml:"check_period"`
	DHCPSources  map[string]f860.DHCPSourceKind `yaml:"dhcp_sources"`
}

func LoadConfig

func LoadConfig(cfgPath string) (*Config, error)

type Router

type Router struct {
	Upstream string        `yaml:"upstream"`
	Timeout  time.Duration `yaml:"timeout"`
	Username string        `yaml:"username"`
	Password string        `yaml:"password"`
}

Jump to

Keyboard shortcuts

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