config

package
v0.0.0-...-6f4be07 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2016 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Username string
	Password string
}

type Config

type Config struct {
	ZoneFile    string `toml:"zone_file"`
	Port        int
	Rndc        string
	Path        string
	LogToSyslog bool     `toml:"syslog"`
	SSLEnabled  bool     `toml:"ssl_enabled"`
	SSLCert     string   `toml:"ssl_cert"`
	SSLKey      string   `toml:"ssl_key"`
	Clients     []Client `toml:"client"`
}

func LoadFile

func LoadFile(file string) (Config, error)

func LoadReader

func LoadReader(r io.Reader) (Config, error)

func (*Config) Dump

func (config *Config) Dump(w io.Writer) error

func (*Config) Override

func (config *Config) Override(variable string, value interface{}) error

Jump to

Keyboard shortcuts

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