Documentation ¶
Index ¶
- Constants
- func AbsPath(appConfig *AppConfig) string
- func ClientDecoderEncoder() []http.ClientOption
- func CurrentPath() string
- func GetConfig() (*configpb.Bootstrap, error)
- func GetEnv() apppkg.RuntimeEnvEnum_RuntimeEnv
- func GetID() string
- func ID(appConfig *AppConfig) string
- func Identifier(appConfig *AppConfig, sep string) string
- func IsDebugMode() bool
- func IsLocalMode() bool
- func Path(appConfig *AppConfig) string
- func RuntimePath() (string, error)
- func ServerDecoderEncoder() []http.ServerOption
- func SetConfig(bootstrap *configpb.Bootstrap)
- func SetID(appConfig *configpb.App)
- type AppConfig
Constants ¶
View Source
const ( RedisSep = ":" PathSep = "/" )
Variables ¶
This section is empty.
Functions ¶
func ClientDecoderEncoder ¶
func ClientDecoderEncoder() []http.ClientOption
ClientDecoderEncoder ...
func GetEnv ¶ added in v0.0.10
func GetEnv() apppkg.RuntimeEnvEnum_RuntimeEnv
func Identifier ¶
Identifier app 唯一标准 @result = app.ProjectName + "/" + app.ServerName + "/" + app.ServerEnv + "/" + app.ServerVersion
func IsDebugMode ¶
func IsDebugMode() bool
func IsLocalMode ¶
func IsLocalMode() bool
func ServerDecoderEncoder ¶
func ServerDecoderEncoder() []http.ServerOption
ServerDecoderEncoder ...
Types ¶
Click to show internal directories.
Click to hide internal directories.