config

package
v0.0.0-...-68faada Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfiguration

func SaveConfiguration(conf ConsulDnsConfig, configPath string) (err error)

Types

type ConsulConfig

type ConsulConfig struct {
	AuthToken   string
	HttpAddress string
	DnsAddress  string
}

type ConsulDnsConfig

type ConsulDnsConfig struct {
	ConsulConfig ConsulConfig
	SystemConfig SystemConfig
}

func LoadConfiguration

func LoadConfiguration(configPath string) (conf ConsulDnsConfig, err error)

type SystemConfig

type SystemConfig struct {
	DnsPort  string
	HttpPort string
	TsigKey  string
}

Jump to

Keyboard shortcuts

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