config

package
v0.0.0-...-77682ad Latest Latest
Warning

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

Go to latest
Published: May 11, 2014 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Package config provides the initial loading of a config.yaml file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig() (err error)

ReadConfig reads the config.yaml initializes CONFIG.

Types

type Config

type Config struct {
	HttpPort               string `yaml:"httpPort,omitempty"`
	TcpPort                string `yaml:"tcpPort,omitempty"`
	SocketPort             string `yaml:"socketPort,omitempty"`
	SessionExpirationShort int    `yaml:"sessionExpirationShort,omitempty"`
	SessionName            string `yaml:"sessionName,omitempty"`
}

Config represents the application configuration structure (stored in the config.yaml).

var CONFIG *Config = new(Config)

CONFIG is the global accessible application configuration.

Jump to

Keyboard shortcuts

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