configRetriever

package
v3.2.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL