config

package
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 4 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnvInstance added in v1.2.0

func NewEnvInstance()

NewEnvInstance ...

Types

type Environment

type Environment struct {
	// contains filtered or unexported fields
}

Environment 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

GetEnvInstance ...

func (*Environment) Configuration

func (env *Environment) Configuration() *list.List

Configuration ...

func (*Environment) GetDynamicConfiguration added in v1.2.0

func (env *Environment) GetDynamicConfiguration() config_center.DynamicConfiguration

GetDynamicConfiguration ...

func (*Environment) SetDynamicConfiguration added in v1.2.0

func (env *Environment) SetDynamicConfiguration(dc config_center.DynamicConfiguration)

SetDynamicConfiguration ...

func (*Environment) UpdateAppExternalConfigMap added in v1.2.0

func (env *Environment) UpdateAppExternalConfigMap(externalMap map[string]string)

UpdateAppExternalConfigMap ...

func (*Environment) UpdateExternalConfigMap

func (env *Environment) UpdateExternalConfigMap(externalMap map[string]string)

UpdateExternalConfigMap ...

type InmemoryConfiguration

type InmemoryConfiguration struct {
	// contains filtered or unexported fields
}

InmemoryConfiguration ...

func (*InmemoryConfiguration) GetProperty

func (conf *InmemoryConfiguration) GetProperty(key string) (bool, string)

GetProperty ...

func (*InmemoryConfiguration) GetSubProperty

func (conf *InmemoryConfiguration) GetSubProperty(subKey string) map[string]struct{}

GetSubProperty ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL