Versions in this module Expand all Collapse all v3 v3.1.2 Feb 5, 2024 Changes in this version + const DefaultConfigTimeout + const DefaultGroup + func GetRuleKey(url *common.URL) string + type BaseDynamicConfiguration struct + func (bdc *BaseDynamicConfiguration) RemoveConfig(string, string) error + type ConfigChangeEvent struct + ConfigType remoting.EventType + Key string + Value interface{} + func (c ConfigChangeEvent) String() string + type ConfigurationListener interface + Process func(*ConfigChangeEvent) + type Configurator interface + Configure func(url *common.URL) + GetUrl func() *common.URL + type DynamicConfiguration interface + AddListener func(string, ConfigurationListener, ...Option) + GetConfigKeysByGroup func(group string) (*gxset.HashSet, error) + GetInternalProperty func(string, ...Option) (string, error) + GetProperties func(string, ...Option) (string, error) + GetRule func(string, ...Option) (string, error) + Parser func() parser.ConfigurationParser + PublishConfig func(string, string, string) error + RemoveConfig func(string, string) error + RemoveListener func(string, ConfigurationListener, ...Option) + SetParser func(parser.ConfigurationParser) + type DynamicConfigurationFactory interface + GetDynamicConfiguration func(*common.URL) (DynamicConfiguration, error) + type MockDynamicConfiguration struct + func (c *MockDynamicConfiguration) AddListener(key string, listener ConfigurationListener, _ ...Option) + func (c *MockDynamicConfiguration) GetConfig(_ string, _ ...Option) (string, error) + func (c *MockDynamicConfiguration) GetConfigKeysByGroup(group string) (*gxset.HashSet, 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) PublishConfig(string, string, string) error + func (c *MockDynamicConfiguration) RemoveListener(_ string, _ ConfigurationListener, _ ...Option) + func (c *MockDynamicConfiguration) SetParser(p parser.ConfigurationParser) + type MockDynamicConfigurationFactory struct + Content string + func (f *MockDynamicConfigurationFactory) GetDynamicConfiguration(_ *common.URL) (DynamicConfiguration, error) + type Option func(*Options) + func WithGroup(group string) Option + func WithTimeout(time time.Duration) Option + type Options struct + Group string + Timeout time.Duration