env

package
v0.0.0-...-73ce370 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: GPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// DEV is the environment used in development,
	// with more details in case of HTTP errors
	DEV = "dev"

	// PREPROD is the environment used in pre-production,
	// the only difference with production environment is the services used
	PREPROD = "preprod"

	// PROD is the environment used in production,
	// with inexistant debug in case of error client-side
	PROD = "prod"
)

Variables

View Source
var (
	// EnvironmentConfig store the configuration of each environments
	EnvironmentConfig map[string]*Config
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Type    string `json:"type" validate:"regexp=^(dev|preprod|prod)$"`
	Address string `json:"address,omitempty" validate:"-"`
	Port    int    `json:"port,omitempty" validate:"-"`
}

Config represent an environment with differents kind of informations

Jump to

Keyboard shortcuts

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