package
1.2.4
Repository: https://github.com/ccheers/xpkg.git
Documentation: pkg.go.dev

# README

env

import "github.com/ccheers/xpkg/conf/env"

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

Index

Constants

deploy env.

const (
    DeployEnvDev  = "dev"
    DeployEnvFat  = "fat"
    DeployEnvUat  = "uat"
    DeployEnvPre  = "pre"
    DeployEnvProd = "prod"
)

Variables

env configuration.

var (
    // Region available region where app at.
    Region string
    // Zone available zone where app at.
    Zone string
    // Hostname machine hostname.
    Hostname string
    // DeployEnv deploy env where app at.
    DeployEnv string
    // 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
    // DiscoveryNodes is seed nodes.
    DiscoveryNodes string
)

Generated by gomarkdoc

# Constants

deploy env.
deploy env.
deploy env.
deploy env.
deploy env.

# Variables

AppID is global unique application id, register by service tree.
Color is the identification of different experimental group in one caster cluster.
DeployEnv deploy env where app at.
DiscoveryNodes is seed nodes.
Hostname machine hostname.
Region available region where app at.
Zone available zone where app at.