qyenv

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBEnv

func GetDBEnv() string

db名称配置 dev test preprod prod

func GetDeployName added in v0.0.34

func GetDeployName() string

获取蓝绿配置,用于:1. 区分部署版本

func GetDockerEnv

func GetDockerEnv() string

0 非docker环境 1 docker中非生产环境 2 docker中生产环境

func GetProductName added in v0.0.16

func GetProductName() string

获取产品名,用于:1. 区分数据库名称

func GetRunEnv

func GetRunEnv() string

程序执行环境配置 dev test preprod prod

func GetUseDocker

func GetUseDocker() int

func IsUnitTestEnv added in v0.0.15

func IsUnitTestEnv() bool

determine if it is a unit test environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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