app_variables

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BasePath           string       // 定义项目的根目录
	Profile            string       // 应用环境, local | dev | prod
	EventDestroyPrefix = "Destroy_" //  程序退出时需要销毁的事件前缀
	ConfigKeyPrefix    = "Config_"  //  配置文件键值缓存时,键的前缀

	ZapLog            *zap.Logger            // 全局日志指针
	ConfigYml         interf.YmlConfigEntity // 全局配置文件指针
	ConfigDatabaseYml interf.YmlConfigEntity // 数据库配置文件指针

	App AppInfo
)

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	BuildTime string
	GitBranch string
	CommitId  string
	GoVersion string
}

Jump to

Keyboard shortcuts

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