env

package
v0.0.0-...-a8d72de Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: MIT Imports: 10 Imported by: 0

README

This folder contains the application settings structure loaded from env.json.

Reference: http://blue-jay.github.io/configuration/

Documentation

Overview

Package env reads the application settings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Asset      asset.Info    `json:"Asset"`
	Email      email.Info    `json:"Email"`
	Form       form.Info     `json:"Form"`
	Generation generate.Info `json:"Generation"`
	MySQL      mysql.Info    `json:"MySQL"`
	Server     server.Info   `json:"Server"`
	Session    session.Info  `json:"Session"`
	Template   view.Template `json:"Template"`
	View       view.Info     `json:"View"`
	// contains filtered or unexported fields
}

Info structures the application settings.

func LoadConfig

func LoadConfig(configFile string) (*Info, error)

LoadConfig reads the configuration file.

func New

func New(path string) *Info

New returns a instance of the application settings.

func (*Info) ParseJSON

func (c *Info) ParseJSON(b []byte) error

ParseJSON unmarshals bytes to structs

func (*Info) Path

func (c *Info) Path() string

Path returns the env.json path

Jump to

Keyboard shortcuts

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