eapp

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 10 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppHost

func AppHost() string

AppHost 获取应用IP,默认是空

func AppInstance added in v0.3.9

func AppInstance() string

AppInstance 获取应用实例,通常是实例的机器名

func AppMode

func AppMode() string

AppMode 获取应用运行的环境

func AppRegion

func AppRegion() string

AppRegion 获取APP运行的地区

func AppVersion

func AppVersion() string

AppVersion get buildAppVersion

func AppZone

func AppZone() string

AppZone 获取应用运行的可用区

func BuildHost

func BuildHost() string

BuildHost get buildHost

func BuildTime

func BuildTime() string

BuildTime get buildTime

func BuildUser

func BuildUser() string

BuildUser get buildUser

func EgoConfigPath

func EgoConfigPath() string

EgoConfigPath 获取应用配置路径

func EgoLogPath added in v0.3.4

func EgoLogPath() string

EgoLogPath 获取应用日志路径

func EgoTraceIDName added in v0.3.6

func EgoTraceIDName() string

EgoTraceIDName 获取链路名称

func EgoVersion

func EgoVersion() string

EgoVersion get egoVersion

func EnableLoggerAddApp added in v0.3.4

func EnableLoggerAddApp() bool

EnableLoggerAddApp 日志是否记录应用名信息

func GoVersion

func GoVersion() string

GoVersion get go version

func HostName

func HostName() string

HostName get host name

func IsDevelopmentMode

func IsDevelopmentMode() bool

IsDevelopmentMode 判断是否是生产模式

func Name

func Name() string

Name gets application name.

func PrintVersion

func PrintVersion()

PrintVersion print formated version info

func SetBuildTime

func SetBuildTime(param string)

SetBuildTime set buildTime

func StartTime

func StartTime() string

StartTime get start time

Types

This section is empty.

Jump to

Keyboard shortcuts

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