Documentation ¶
Index ¶
- Constants
- type ConfigChangeEvent
- type ConfigurationListener
- type Configurator
- type DynamicConfiguration
- type DynamicConfigurationFactory
- type MockDynamicConfiguration
- func (c *MockDynamicConfiguration) AddListener(key string, listener ConfigurationListener, opions ...Option)
- func (c *MockDynamicConfiguration) GetConfig(key string, opts ...Option) (string, error)
- func (c *MockDynamicConfiguration) GetConfigs(key string, opts ...Option) (string, error)
- func (c *MockDynamicConfiguration) MockApplicationConfigEvent()
- func (c *MockDynamicConfiguration) MockServiceConfigEvent()
- func (c *MockDynamicConfiguration) Parser() parser.ConfigurationParser
- func (c *MockDynamicConfiguration) RemoveListener(key string, listener ConfigurationListener, opions ...Option)
- func (c *MockDynamicConfiguration) SetParser(p parser.ConfigurationParser)
- type MockDynamicConfigurationFactory
- type Option
- type Options
Constants ¶
View Source
const DEFAULT_CONFIG_TIMEOUT = "10s"
View Source
const DEFAULT_GROUP = "dubbo"
//////////////////////////////////////// DynamicConfiguration ////////////////////////////////////////
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigChangeEvent ¶
func (ConfigChangeEvent) String ¶
func (c ConfigChangeEvent) String() string
type ConfigurationListener ¶
type ConfigurationListener interface {
Process(*ConfigChangeEvent)
}
type DynamicConfiguration ¶
type DynamicConfiguration interface { Parser() parser.ConfigurationParser SetParser(parser.ConfigurationParser) AddListener(string, ConfigurationListener, ...Option) RemoveListener(string, ConfigurationListener, ...Option) GetConfig(string, ...Option) (string, error) GetConfigs(string, ...Option) (string, error) }
type DynamicConfigurationFactory ¶
type DynamicConfigurationFactory interface {
GetDynamicConfiguration(*common.URL) (DynamicConfiguration, error)
}
type MockDynamicConfiguration ¶
type MockDynamicConfiguration struct {
// contains filtered or unexported fields
}
func (*MockDynamicConfiguration) AddListener ¶
func (c *MockDynamicConfiguration) AddListener(key string, listener ConfigurationListener, opions ...Option)
func (*MockDynamicConfiguration) GetConfig ¶
func (c *MockDynamicConfiguration) GetConfig(key string, opts ...Option) (string, error)
func (*MockDynamicConfiguration) GetConfigs ¶
func (c *MockDynamicConfiguration) GetConfigs(key string, opts ...Option) (string, error)
For zookeeper, getConfig and getConfigs have the same meaning.
func (*MockDynamicConfiguration) MockApplicationConfigEvent ¶
func (c *MockDynamicConfiguration) MockApplicationConfigEvent()
func (*MockDynamicConfiguration) MockServiceConfigEvent ¶
func (c *MockDynamicConfiguration) MockServiceConfigEvent()
func (*MockDynamicConfiguration) Parser ¶
func (c *MockDynamicConfiguration) Parser() parser.ConfigurationParser
func (*MockDynamicConfiguration) RemoveListener ¶
func (c *MockDynamicConfiguration) RemoveListener(key string, listener ConfigurationListener, opions ...Option)
func (*MockDynamicConfiguration) SetParser ¶
func (c *MockDynamicConfiguration) SetParser(p parser.ConfigurationParser)
type MockDynamicConfigurationFactory ¶
type MockDynamicConfigurationFactory struct {
Content string
}
func (*MockDynamicConfigurationFactory) GetDynamicConfiguration ¶
func (f *MockDynamicConfigurationFactory) GetDynamicConfiguration(url *common.URL) (DynamicConfiguration, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.
|
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. |
Click to show internal directories.
Click to hide internal directories.