Documentation
¶
Overview ¶
Package mock_sync is a generated GoMock package.
Index ¶
- type MockSync
- func (m *MockSync) Close()
- func (m *MockSync) Delete(path string, prefix bool) error
- func (m *MockSync) EXPECT() *MockSyncMockRecorder
- func (m *MockSync) Fetch(path string) (*sync.Node, error)
- func (m *MockSync) GetProcessID() string
- func (m *MockSync) HasLock(path string) bool
- func (m *MockSync) Lock(path string, block bool) (chan struct{}, error)
- func (m *MockSync) Unlock(path string) error
- func (m *MockSync) Update(path, json string) error
- func (m *MockSync) Watch(path string, responseChan chan *sync.Event, stopChan chan bool, revision int64) error
- func (m *MockSync) WatchContext(ctx context.Context, path string, revision int64) <-chan *sync.Event
- type MockSyncMockRecorder
- func (mr *MockSyncMockRecorder) Close() *gomock.Call
- func (mr *MockSyncMockRecorder) Delete(path, prefix interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) Fetch(path interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) GetProcessID() *gomock.Call
- func (mr *MockSyncMockRecorder) HasLock(path interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) Lock(path, block interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) Unlock(path interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) Update(path, json interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) Watch(path, responseChan, stopChan, revision interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) WatchContext(ctx, path, revision interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSync ¶
type MockSync struct {
// contains filtered or unexported fields
}
MockSync is a mock of Sync interface
func NewMockSync ¶
func NewMockSync(ctrl *gomock.Controller) *MockSync
NewMockSync creates a new mock instance
func (*MockSync) EXPECT ¶
func (m *MockSync) EXPECT() *MockSyncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSync) GetProcessID ¶
GetProcessID mocks base method
type MockSyncMockRecorder ¶
type MockSyncMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncMockRecorder is the mock recorder for MockSync
func (*MockSyncMockRecorder) Close ¶
func (mr *MockSyncMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockSyncMockRecorder) Delete ¶
func (mr *MockSyncMockRecorder) Delete(path, prefix interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockSyncMockRecorder) Fetch ¶
func (mr *MockSyncMockRecorder) Fetch(path interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockSyncMockRecorder) GetProcessID ¶
func (mr *MockSyncMockRecorder) GetProcessID() *gomock.Call
GetProcessID indicates an expected call of GetProcessID
func (*MockSyncMockRecorder) HasLock ¶
func (mr *MockSyncMockRecorder) HasLock(path interface{}) *gomock.Call
HasLock indicates an expected call of HasLock
func (*MockSyncMockRecorder) Lock ¶
func (mr *MockSyncMockRecorder) Lock(path, block interface{}) *gomock.Call
Lock indicates an expected call of Lock
func (*MockSyncMockRecorder) Unlock ¶
func (mr *MockSyncMockRecorder) Unlock(path interface{}) *gomock.Call
Unlock indicates an expected call of Unlock
func (*MockSyncMockRecorder) Update ¶
func (mr *MockSyncMockRecorder) Update(path, json interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockSyncMockRecorder) Watch ¶
func (mr *MockSyncMockRecorder) Watch(path, responseChan, stopChan, revision interface{}) *gomock.Call
Watch indicates an expected call of Watch
func (*MockSyncMockRecorder) WatchContext ¶
func (mr *MockSyncMockRecorder) WatchContext(ctx, path, revision interface{}) *gomock.Call
WatchContext indicates an expected call of WatchContext