Documentation ¶
Index ¶
- Constants
- func GetRuleKey(url common.URL) string
- type ConfigChangeEvent
- type ConfigurationListener
- type Configurator
- type DynamicConfiguration
- type DynamicConfigurationFactory
- type MockDynamicConfiguration
- func (c *MockDynamicConfiguration) AddListener(key string, listener ConfigurationListener, _ ...Option)
- func (c *MockDynamicConfiguration) GetConfig(_ string, _ ...Option) (string, error)
- func (c *MockDynamicConfiguration) GetConfigs(key string, opts ...Option) (string, error)
- func (c *MockDynamicConfiguration) GetInternalProperty(key string, opts ...Option) (string, error)
- func (c *MockDynamicConfiguration) GetProperties(_ string, _ ...Option) (string, error)
- func (c *MockDynamicConfiguration) GetRule(key string, opts ...Option) (string, error)
- func (c *MockDynamicConfiguration) MockApplicationConfigEvent()
- func (c *MockDynamicConfiguration) MockServiceConfigEvent()
- func (c *MockDynamicConfiguration) Parser() parser.ConfigurationParser
- func (c *MockDynamicConfiguration) RemoveListener(_ string, _ ConfigurationListener, _ ...Option)
- func (c *MockDynamicConfiguration) SetParser(p parser.ConfigurationParser)
- type MockDynamicConfigurationFactory
- type Option
- type Options
Constants ¶
const ( // DEFAULT_GROUP: default group DEFAULT_GROUP = "dubbo" // DEFAULT_CONFIG_TIMEOUT: default config timeout DEFAULT_CONFIG_TIMEOUT = "10s" )
//////////////////////////////////////// DynamicConfiguration ////////////////////////////////////////
Variables ¶
This section is empty.
Functions ¶
func GetRuleKey ¶ added in v1.4.0
GetRuleKey The format is '{interfaceName}:[version]:[group]'
Types ¶
type ConfigChangeEvent ¶ added in v1.2.0
ConfigChangeEvent ...
func (ConfigChangeEvent) String ¶ added in v1.2.0
func (c ConfigChangeEvent) String() string
type ConfigurationListener ¶ added in v1.2.0
type ConfigurationListener interface {
Process(*ConfigChangeEvent)
}
ConfigurationListener ...
type Configurator ¶ added in v1.2.0
Configurator ...
type DynamicConfiguration ¶
type DynamicConfiguration interface { Parser() parser.ConfigurationParser SetParser(parser.ConfigurationParser) AddListener(string, ConfigurationListener, ...Option) RemoveListener(string, ConfigurationListener, ...Option) //GetProperties get properties file GetProperties(string, ...Option) (string, error) //GetRule get Router rule properties file GetRule(string, ...Option) (string, error) //GetInternalProperty get value by key in Default properties file(dubbo.properties) GetInternalProperty(string, ...Option) (string, error) }
DynamicConfiguration ...
type DynamicConfigurationFactory ¶
type DynamicConfigurationFactory interface {
GetDynamicConfiguration(*common.URL) (DynamicConfiguration, error)
}
DynamicConfigurationFactory ...
type MockDynamicConfiguration ¶ added in v1.2.0
type MockDynamicConfiguration struct {
// contains filtered or unexported fields
}
MockDynamicConfiguration ...
func (*MockDynamicConfiguration) AddListener ¶ added in v1.2.0
func (c *MockDynamicConfiguration) AddListener(key string, listener ConfigurationListener, _ ...Option)
AddListener ...
func (*MockDynamicConfiguration) GetConfig ¶ added in v1.2.0
func (c *MockDynamicConfiguration) GetConfig(_ string, _ ...Option) (string, error)
GetConfig ...
func (*MockDynamicConfiguration) GetConfigs ¶ added in v1.2.0
func (c *MockDynamicConfiguration) GetConfigs(key string, opts ...Option) (string, error)
GetConfigs For zookeeper, getConfig and getConfigs have the same meaning.
func (*MockDynamicConfiguration) GetInternalProperty ¶ added in v1.3.0
func (c *MockDynamicConfiguration) GetInternalProperty(key string, opts ...Option) (string, error)
GetInternalProperty For zookeeper, getConfig and getConfigs have the same meaning.
func (*MockDynamicConfiguration) GetProperties ¶ added in v1.3.0
func (c *MockDynamicConfiguration) GetProperties(_ string, _ ...Option) (string, error)
GetProperties ...
func (*MockDynamicConfiguration) GetRule ¶ added in v1.3.0
func (c *MockDynamicConfiguration) GetRule(key string, opts ...Option) (string, error)
GetRule ...
func (*MockDynamicConfiguration) MockApplicationConfigEvent ¶ added in v1.2.0
func (c *MockDynamicConfiguration) MockApplicationConfigEvent()
MockApplicationConfigEvent ...
func (*MockDynamicConfiguration) MockServiceConfigEvent ¶ added in v1.2.0
func (c *MockDynamicConfiguration) MockServiceConfigEvent()
MockServiceConfigEvent ...
func (*MockDynamicConfiguration) Parser ¶ added in v1.2.0
func (c *MockDynamicConfiguration) Parser() parser.ConfigurationParser
Parser ...
func (*MockDynamicConfiguration) RemoveListener ¶ added in v1.2.0
func (c *MockDynamicConfiguration) RemoveListener(_ string, _ ConfigurationListener, _ ...Option)
RemoveListener ...
func (*MockDynamicConfiguration) SetParser ¶ added in v1.2.0
func (c *MockDynamicConfiguration) SetParser(p parser.ConfigurationParser)
SetParser ...
type MockDynamicConfigurationFactory ¶
type MockDynamicConfigurationFactory struct {
Content string
}
MockDynamicConfigurationFactory ...
func (*MockDynamicConfigurationFactory) GetDynamicConfiguration ¶
func (f *MockDynamicConfigurationFactory) GetDynamicConfiguration(_ *common.URL) (DynamicConfiguration, error)
GetDynamicConfiguration ...