Documentation ¶
Overview ¶
* @Author: reel * @Date: 2023-05-11 19:52:08 * @LastEditors: reel * @LastEditTime: 2023-06-24 06:45:53 * @Description: 用于配置app环境变量
Index ¶
Constants ¶
View Source
const ( ENV_PROJECT = "FBS.Core" ENV_VERSION = "1.0" ENV_MODE_DEV = "dev" ENV_MODE_FAT = "fat" ENV_MODE_PRO = "pro" ENV_MSC_DEPAULT_PORT = ":6618" )
Variables ¶
This section is empty.
Functions ¶
func SetAppName ¶
func SetAppName(name string)
func SetAppVersion ¶
func SetAppVersion(version string)
func SetMSCAddr ¶
func SetMSCAddr(addr string)
Types ¶
type Environment ¶
type Environment interface { Value() string Super() bool Then() int64 Mode() string DBInit() string MscAddr() string Project() string Version() string AppName() string DataPath() string AppVersion() string Level() logrus.Level GormLogLevel() logger.LogLevel // contains filtered or unexported methods }
func Active ¶
func Active() Environment
Click to show internal directories.
Click to hide internal directories.