Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuildDate ¶ added in v0.9.0
func GetBuildDate() string
GetBuildDate returns the build datetime of current gopa package
func GetLastCommitHash ¶ added in v0.10.0
func GetLastCommitHash() string
func GetLastCommitLog ¶ added in v0.9.0
func GetLastCommitLog() string
GetLastCommitLog returns last commit information of source code
func GetModuleConfig ¶
GetModuleConfig return specify module's config
func GetPluginConfig ¶ added in v0.10.0
GetPluginConfig return specify plugin's config
func GetStartTime ¶ added in v0.10.0
func GetVersion ¶ added in v0.10.0
func GetVersion() string
GetVersion returns the version of this gopa build
Types ¶
type Env ¶
type Env struct {
// static configs
SystemConfig *config.SystemConfig
// dynamic configs
RuntimeConfig *config.RuntimeConfig
IsDebug bool
LoggingLevel string
}
Env is environment object of gopa
func Environment ¶
Environment create a new env instance from a config
Click to show internal directories.
Click to hide internal directories.