Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockListener
- func (m *MockListener) EXPECT() *MockListenerMockRecorder
- func (m *MockListener) GetNamespace(namespace string) (interface{}, bool)
- func (m *MockListener) InitConfig(client agollo.Client, namespaceStruct map[string]interface{})
- func (m *MockListener) OnChange(event *storage.ChangeEvent)
- func (m *MockListener) OnNewestChange(event *storage.FullChangeEvent)
- type MockListenerMockRecorder
- func (mr *MockListenerMockRecorder) GetNamespace(namespace interface{}) *gomock.Call
- func (mr *MockListenerMockRecorder) InitConfig(client, namespaceStruct interface{}) *gomock.Call
- func (mr *MockListenerMockRecorder) OnChange(event interface{}) *gomock.Call
- func (mr *MockListenerMockRecorder) OnNewestChange(event interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockListener ¶
type MockListener struct {
// contains filtered or unexported fields
}
MockListener is a mock of Listener interface.
func NewMockListener ¶
func NewMockListener(ctrl *gomock.Controller) *MockListener
NewMockListener creates a new mock instance.
func (*MockListener) EXPECT ¶
func (m *MockListener) EXPECT() *MockListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockListener) GetNamespace ¶
func (m *MockListener) GetNamespace(namespace string) (interface{}, bool)
GetNamespace mocks base method.
func (*MockListener) InitConfig ¶
func (m *MockListener) InitConfig(client agollo.Client, namespaceStruct map[string]interface{})
InitConfig mocks base method.
func (*MockListener) OnChange ¶
func (m *MockListener) OnChange(event *storage.ChangeEvent)
OnChange mocks base method.
func (*MockListener) OnNewestChange ¶
func (m *MockListener) OnNewestChange(event *storage.FullChangeEvent)
OnNewestChange mocks base method.
type MockListenerMockRecorder ¶
type MockListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockListenerMockRecorder is the mock recorder for MockListener.
func (*MockListenerMockRecorder) GetNamespace ¶
func (mr *MockListenerMockRecorder) GetNamespace(namespace interface{}) *gomock.Call
GetNamespace indicates an expected call of GetNamespace.
func (*MockListenerMockRecorder) InitConfig ¶
func (mr *MockListenerMockRecorder) InitConfig(client, namespaceStruct interface{}) *gomock.Call
InitConfig indicates an expected call of InitConfig.
func (*MockListenerMockRecorder) OnChange ¶
func (mr *MockListenerMockRecorder) OnChange(event interface{}) *gomock.Call
OnChange indicates an expected call of OnChange.
func (*MockListenerMockRecorder) OnNewestChange ¶
func (mr *MockListenerMockRecorder) OnNewestChange(event interface{}) *gomock.Call
OnNewestChange indicates an expected call of OnNewestChange.
Click to show internal directories.
Click to hide internal directories.