config

package
v0.0.0-...-9f9c045 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: GPL-3.0 Imports: 3 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 {
	// The (optional ip address and) port for HTTP to listen on
	ListenAddress string
	// The administrator password, only set on first run
	AdminPwd string
	// The hostname:port to use for MongoDB connections
	MongoAddress string
	// The name of the MongoDB database
	DatabaseName string
}

Config abstracts the config file for the application

var GlobalConfig *Config

GlobalConfig is the singleton instance of Config

func LoadConfig

func LoadConfig(path string) *Config

LoadConfig returns a populated instance of Config from @path

@path: The full path to the config file

Jump to

Keyboard shortcuts

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