env

package
v0.0.0-...-3134978 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: MIT Imports: 9 Imported by: 0

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"`
	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