config

package
v0.0.0-...-fa1d5a5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMasterConfig

func GetMasterConfig() *masterConfiguration

GetMasterConfig ... load and retrieve the master configuration

func GetPeonConfig

func GetPeonConfig() *peonConfiguration

GetPeonConfig ... load and retrieve the peon configuration

func MakeYamlFile

func MakeYamlFile()

creates the startup YAML configuration file, if it dose not exist.

func OpenYaml

func OpenYaml()

opens the configuration file and bind to the struct and the variable Config.

Types

type Options

type Options struct {
	Mode       string
	CommPort   int
	DataPort   int
	BindIP     string
	ConfigFile string
}

Contains the program runtime options

var Config Options

Used to pass the values to the main file.

Jump to

Keyboard shortcuts

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