Documentation ¶
Index ¶
- func AddConfig(key string, value interface{})
- func CleanupTestSource()
- func NewTestSource(initConf map[string]interface{}) core.ConfigSource
- func RemoveConfig(key string, value interface{})
- type TestingSource
- func (*TestingSource) AddDimensionInfo(dimensionInfo string) (map[string]string, error)
- func (test *TestingSource) Cleanup() error
- func (test *TestingSource) DynamicConfigHandler(callback core.DynamicConfigCallback) error
- func (test *TestingSource) GetConfigurationByKey(key string) (interface{}, error)
- func (*TestingSource) GetConfigurationByKeyAndDimensionInfo(key, di string) (interface{}, error)
- func (test *TestingSource) GetConfigurations() (map[string]interface{}, error)
- func (TestingSource) GetConfigurationsByDI(dimensionInfo string) (map[string]interface{}, error)
- func (test *TestingSource) GetPriority() int
- func (*TestingSource) GetSourceName() string
- func (test *TestingSource) SetPriority(priority int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestSource ¶
func NewTestSource(initConf map[string]interface{}) core.ConfigSource
NewTestSource is a function for creating new test source
func RemoveConfig ¶
func RemoveConfig(key string, value interface{})
RemoveConfig removes a configuration
Types ¶
type TestingSource ¶
type TestingSource struct { Configuration map[string]interface{} sync.Mutex // contains filtered or unexported fields }
TestingSource is a struct
func (*TestingSource) AddDimensionInfo ¶
func (*TestingSource) AddDimensionInfo(dimensionInfo string) (map[string]string, error)
AddDimensionInfo adds dimension info for a test configuration
func (*TestingSource) Cleanup ¶
func (test *TestingSource) Cleanup() error
Cleanup cleans a particular test configuration up
func (*TestingSource) DynamicConfigHandler ¶
func (test *TestingSource) DynamicConfigHandler(callback core.DynamicConfigCallback) error
DynamicConfigHandler dynamically handles a test configuration
func (*TestingSource) GetConfigurationByKey ¶
func (test *TestingSource) GetConfigurationByKey(key string) (interface{}, error)
GetConfigurationByKey gets required test configuration for a particular key
func (*TestingSource) GetConfigurationByKeyAndDimensionInfo ¶
func (*TestingSource) GetConfigurationByKeyAndDimensionInfo(key, di string) (interface{}, error)
GetConfigurationByKeyAndDimensionInfo gets a required test configuration for particular key and dimension info pair
func (*TestingSource) GetConfigurations ¶
func (test *TestingSource) GetConfigurations() (map[string]interface{}, error)
GetConfigurations gets all test configurations
func (TestingSource) GetConfigurationsByDI ¶
func (TestingSource) GetConfigurationsByDI(dimensionInfo string) (map[string]interface{}, error)
GetConfigurationsByDI gets required test configuration for a particular dimension info
func (*TestingSource) GetPriority ¶
func (test *TestingSource) GetPriority() int
GetPriority returns priority of the test configuration
func (*TestingSource) GetSourceName ¶
func (*TestingSource) GetSourceName() string
GetSourceName returns name of test configuration
func (*TestingSource) SetPriority ¶ added in v0.13.0
func (test *TestingSource) SetPriority(priority int)
SetPriority custom priority