Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEVELOPMENT = "dev" TEST = "test" PRODUCT = "prod" InitKey = "initialize" )
Variables ¶
View Source
var (
InitConfig = &Init{}
)
约定大于配置
Functions ¶
Types ¶
type BasicConfig ¶
type EnvConfig ¶
type EnvConfig struct {
conf_center.ConfigCenterEnvConfig
}
type Init ¶
type Init struct { EnvConfig *EnvConfig BasicConfig Env, ConfUrl string // contains filtered or unexported fields }
func (*Init) GetServiceConfig ¶
func (init *Init) GetServiceConfig() *ServerConfig
func (*Init) LoadConfig ¶
func (*Init) UnmarshalAndSet ¶
Click to show internal directories.
Click to hide internal directories.