Documentation ¶
Index ¶
- func NewEnvInstance()
- type Environment
- func (env *Environment) Configuration() *list.List
- func (env *Environment) GetDynamicConfiguration() config_center.DynamicConfiguration
- func (env *Environment) SetDynamicConfiguration(dc config_center.DynamicConfiguration)
- func (env *Environment) UpdateAppExternalConfigMap(externalMap map[string]string)
- func (env *Environment) UpdateExternalConfigMap(externalMap map[string]string)
- type InmemoryConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnvInstance ¶
func NewEnvInstance()
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
There is dubbo.properties file and application level config center configuration which higner than normal config center in java. So in java the configuration sequence will be config center > application level config center > dubbo.properties > spring bean configuration. But in go, neither the dubbo.properties file or application level config center configuration will not support for the time being. We just have config center configuration which can override configuration in consumer.yaml & provider.yaml. But for add these features in future ,I finish the environment struct following Environment class in java.
func GetEnvInstance ¶
func GetEnvInstance() *Environment
func (*Environment) Configuration ¶
func (env *Environment) Configuration() *list.List
func (*Environment) GetDynamicConfiguration ¶
func (env *Environment) GetDynamicConfiguration() config_center.DynamicConfiguration
func (*Environment) SetDynamicConfiguration ¶
func (env *Environment) SetDynamicConfiguration(dc config_center.DynamicConfiguration)
func (*Environment) UpdateAppExternalConfigMap ¶
func (env *Environment) UpdateAppExternalConfigMap(externalMap map[string]string)
func (*Environment) UpdateExternalConfigMap ¶
func (env *Environment) UpdateExternalConfigMap(externalMap map[string]string)
type InmemoryConfiguration ¶
type InmemoryConfiguration struct {
// contains filtered or unexported fields
}
func (*InmemoryConfiguration) GetProperty ¶
func (conf *InmemoryConfiguration) GetProperty(key string) (bool, string)
func (*InmemoryConfiguration) GetSubProperty ¶
func (conf *InmemoryConfiguration) GetSubProperty(subKey string) map[string]struct{}
Click to show internal directories.
Click to hide internal directories.