env

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package env get env & app config, all the public field must after init() finished and flag.Parse().

Index

Constants

View Source
const (
	DeployEnvDev  = "dev"
	DeployEnvFat1 = "fat1"
	DeployEnvUat  = "uat"
	DeployEnvPre  = "pre"
	DeployEnvProd = "prod"
)

deploy env.

Variables

View Source
var (
	// Region avaliable region where app at.
	Region string
	// Zone avaliable zone where app at.
	Zone string
	// Hostname machine hostname.
	Hostname string
	// DeployEnv deploy env where app at.
	DeployEnv string
	// IP FIXME(haoguanwei) #240
	IP = os.Getenv("POD_IP")
	// AppID is global unique application id, register by service tree.
	// such as main.arch.disocvery.
	AppID string
	// Color is the identification of different experimental group in one caster cluster.
	Color string
)

env configuration.

View Source
var (
	// HTTPPort app listen http port.
	HTTPPort string
	// GORPCPort app listen gorpc port.
	GORPCPort string
	// GRPCPort app listen grpc port.
	GRPCPort string
)

app configraution.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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