config

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

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

Go to latest
Published: Oct 20, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package config handles the parsing and marshall of the configuration file

Index

Constants

View Source
const (
	// ConfigDirEnv is the name of the env variable that contains the path for the config.json file
	ConfigDirEnv = "HELENA_CONFIG_DIR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port     int       `json:"port"`
	Database *database `json:"database"`
}

Config is the struct used to unmarshal the config.json file

func NewConfig

func NewConfig() (*Config, error)

NewConfig find the config.json file, unmarshal it and return a new instance of Config

Jump to

Keyboard shortcuts

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