config

package
v0.0.0-...-8938f7c Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type Config

type Config struct {
	Server     *ServerConfig   `json:"server" yaml:"server"`
	Conntrack  *ContrackConfig `json:"conntrack" yaml:"conntrack"`
	DhcpConfig *DhcpConfig     `json:"dhcp" yaml:"dhcp"`
	Store      *StoreConfig    `json:"store" yaml:"store"`
}

func NewConfig

func NewConfig(configDir string, logger logging.Logger) (*Config, error)

type ContrackConfig

type ContrackConfig struct {
	Type          string `json:"type" yaml:"type"`
	ConntrackFile string `json:"proc_file" yaml:"proc_file"`
	DevFile       string `json:"dev_file" yaml:"dev_file"`
	WanInterface  string `json:"wan_interface" yaml:"wan_interface"`
}

type DhcpConfig

type DhcpConfig struct {
	Type        string `json:"type" yaml:"type"`
	DnsmasqFile string `json:"dnsmasq_file" yaml:"dnsmasq_file"`
}

type ServerConfig

type ServerConfig struct {
	BindAddress string `json:"bind_address" yaml:"bind_address"`
	HttpPort    int    `json:"http_port" yaml:"http_port"`
	UiDir       string `json:"ui_dir" yaml:"ui_dir"`
}

type StoreConfig

type StoreConfig struct {
	Type    string `json:"type" yaml:"type"`
	LanCIDR string `json:"lan_cidr" yaml:"lan_cidr"`
}

Jump to

Keyboard shortcuts

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