Documentation
¶
Index ¶
- Constants
- func GetApolloCluster(cluster string) string
- func GetApolloNamespace(namespace string) string
- func GetApolloSecret() string
- func GetEnv(envName string) string
- func Init(userConf map[string]string)
- func IsDebug(v string) bool
- func IsDev() bool
- func IsLocal() bool
- func IsProd() bool
- func IsTest() bool
Constants ¶
View Source
const ( AppEnv = "APP_ENV" AppName = "APP_NAME" AppVersion = "APP_VERSION" TraceName = "TRACE_NAME" ApolloUrl = "APOLLO_URL" ApolloAppID = "APOLLO_APPID" ApolloSecret = "APOLLO_ACCESS_KEY_SECRET" GrpcPort = "GRPC_PORT" HttpPort = "HTTP_PORT" PprofPort = "PPROF_PORT" )
Variables ¶
This section is empty.
Functions ¶
func GetApolloCluster ¶ added in v0.0.4
func GetApolloNamespace ¶ added in v0.0.4
func GetApolloSecret ¶ added in v0.0.4
func GetApolloSecret() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.