config

package
v0.0.0-...-f452e82 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 4 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 {
	IPv4 bool
	IPv6 bool
	Wan  WanInterface
	Lan  []LanInterface
}

func Parse

func Parse(r io.Reader) (*Config, error)

type General

type General struct {
	IPv4 bool `toml:"ipv4"`
	IPv6 bool `toml:"ipv6"`
}

type LanInterface

type LanInterface struct {
	Name   string           `toml:"name"`
	Prefix netaddr.IPPrefix `toml:"prefix"`
}

type WanInterface

type WanInterface struct {
	Name string     `toml:"name"`
	Ip   netaddr.IP `toml:"ip"`
}

Jump to

Keyboard shortcuts

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