Documentation ¶
Index ¶
- func GetModuleConfig(name string) *config.Config
- func GetPluginConfig(name string) *config.Config
- func GetStartTime() time.Time
- func ParseConfig(configKey string, configInstance interface{}) (exist bool, err error)
- type Env
- func (env *Env) GetAppCapitalName() string
- func (env *Env) GetAppDesc() string
- func (env *Env) GetAppLowercaseName() string
- func (env *Env) GetAppName() string
- func (env *Env) GetBuildDate() string
- func (env *Env) GetGoodbyeMessage() string
- func (env *Env) GetLastCommitHash() string
- func (env *Env) GetLastCommitLog() string
- func (env *Env) GetVersion() string
- func (env *Env) GetWelcomeMessage() string
- func (env *Env) GetWorkingDir() string
- func (env *Env) Init() *Env
- func (env *Env) SetConfigFile(configFile string) *Env
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetModuleConfig ¶
GetModuleConfig return specify module's config
func GetPluginConfig ¶
GetPluginConfig return specify plugin's config
func GetStartTime ¶
func ParseConfig ¶
Types ¶
type Env ¶
type Env struct { // static configs SystemConfig *config.SystemConfig IsDebug bool IsDaemonMode bool LoggingLevel string // contains filtered or unexported fields }
Env is environment object of app
func (*Env) GetAppCapitalName ¶
func (*Env) GetAppDesc ¶
func (*Env) GetAppLowercaseName ¶
func (*Env) GetAppName ¶
func (*Env) GetBuildDate ¶
GetBuildDate returns the build datetime of current package
func (*Env) GetGoodbyeMessage ¶
func (*Env) GetLastCommitHash ¶
func (*Env) GetLastCommitLog ¶
GetLastCommitLog returns last commit information of source code
func (*Env) GetVersion ¶
GetVersion returns the version of this build
func (*Env) GetWelcomeMessage ¶
func (*Env) GetWorkingDir ¶
GetWorkingDir returns root working dir of app instance
func (*Env) SetConfigFile ¶
Click to show internal directories.
Click to hide internal directories.