Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfigRetriever ¶
type MockConfigRetriever struct {
// contains filtered or unexported fields
}
MockConfigRetriever mocks ConfigRetriever that allows to read configuration in order to adjust a config item by multiple event handlers.
func NewMockConfigRetriever ¶
func NewMockConfigRetriever() *MockConfigRetriever
NewMockConfigRetriever is a constructor for MockConfigRetriever.
func (*MockConfigRetriever) AddConfig ¶
func (m *MockConfigRetriever) AddConfig(key string, val proto.Message)
func (*MockConfigRetriever) GetConfig ¶
func (m *MockConfigRetriever) GetConfig(key string) proto.Message
GetConfig is mock implementation that mocks returning value for the given key in the controller's transaction (or if data is missing in transaction, controller's stored internal config is retrieved).
Click to show internal directories.
Click to hide internal directories.