mock_sync

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_sync is a generated GoMock package.

Index

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

func (m *MockSync) Close()

Close mocks base method

func (*MockSync) Delete

func (m *MockSync) Delete(path string, prefix bool) error

Delete mocks base method

func (*MockSync) EXPECT

func (m *MockSync) EXPECT() *MockSyncMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSync) Fetch

func (m *MockSync) Fetch(path string) (*sync.Node, error)

Fetch mocks base method

func (*MockSync) GetProcessID

func (m *MockSync) GetProcessID() string

GetProcessID mocks base method

func (*MockSync) HasLock

func (m *MockSync) HasLock(path string) bool

HasLock mocks base method

func (*MockSync) Lock

func (m *MockSync) Lock(path string, block bool) (chan struct{}, error)

Lock mocks base method

func (*MockSync) Unlock

func (m *MockSync) Unlock(path string) error

Unlock mocks base method

func (*MockSync) Update

func (m *MockSync) Update(path, json string) error

Update mocks base method

func (*MockSync) Watch

func (m *MockSync) Watch(path string, responseChan chan *sync.Event, stopChan chan bool, revision int64) error

Watch mocks base method

func (*MockSync) WatchContext

func (m *MockSync) WatchContext(ctx context.Context, path string, revision int64) <-chan *sync.Event

WatchContext 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

Jump to

Keyboard shortcuts

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