mock_raft

package
v0.0.0-...-0e8e39a Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_raft is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBatchingFSM

type MockBatchingFSM struct {
	// contains filtered or unexported fields
}

MockBatchingFSM is a mock of BatchingFSM interface.

func NewMockBatchingFSM

func NewMockBatchingFSM(ctrl *gomock.Controller) *MockBatchingFSM

NewMockBatchingFSM creates a new mock instance.

func (*MockBatchingFSM) Apply

func (m *MockBatchingFSM) Apply(arg0 *raft.Log) interface{}

Apply mocks base method.

func (*MockBatchingFSM) ApplyBatch

func (m *MockBatchingFSM) ApplyBatch(arg0 []*raft.Log) []interface{}

ApplyBatch mocks base method.

func (*MockBatchingFSM) EXPECT

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

func (*MockBatchingFSM) Restore

func (m *MockBatchingFSM) Restore(arg0 io.ReadCloser) error

Restore mocks base method.

func (*MockBatchingFSM) Snapshot

func (m *MockBatchingFSM) Snapshot() (raft.FSMSnapshot, error)

Snapshot mocks base method.

type MockBatchingFSMMockRecorder

type MockBatchingFSMMockRecorder struct {
	// contains filtered or unexported fields
}

MockBatchingFSMMockRecorder is the mock recorder for MockBatchingFSM.

func (*MockBatchingFSMMockRecorder) Apply

func (mr *MockBatchingFSMMockRecorder) Apply(arg0 interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockBatchingFSMMockRecorder) ApplyBatch

func (mr *MockBatchingFSMMockRecorder) ApplyBatch(arg0 interface{}) *gomock.Call

ApplyBatch indicates an expected call of ApplyBatch.

func (*MockBatchingFSMMockRecorder) Restore

func (mr *MockBatchingFSMMockRecorder) Restore(arg0 interface{}) *gomock.Call

Restore indicates an expected call of Restore.

func (*MockBatchingFSMMockRecorder) Snapshot

func (mr *MockBatchingFSMMockRecorder) Snapshot() *gomock.Call

Snapshot indicates an expected call of Snapshot.

type MockFSM

type MockFSM struct {
	// contains filtered or unexported fields
}

MockFSM is a mock of FSM interface.

func NewMockFSM

func NewMockFSM(ctrl *gomock.Controller) *MockFSM

NewMockFSM creates a new mock instance.

func (*MockFSM) Apply

func (m *MockFSM) Apply(arg0 *raft.Log) interface{}

Apply mocks base method.

func (*MockFSM) EXPECT

func (m *MockFSM) EXPECT() *MockFSMMockRecorder

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

func (*MockFSM) Restore

func (m *MockFSM) Restore(arg0 io.ReadCloser) error

Restore mocks base method.

func (*MockFSM) Snapshot

func (m *MockFSM) Snapshot() (raft.FSMSnapshot, error)

Snapshot mocks base method.

type MockFSMMockRecorder

type MockFSMMockRecorder struct {
	// contains filtered or unexported fields
}

MockFSMMockRecorder is the mock recorder for MockFSM.

func (*MockFSMMockRecorder) Apply

func (mr *MockFSMMockRecorder) Apply(arg0 interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockFSMMockRecorder) Restore

func (mr *MockFSMMockRecorder) Restore(arg0 interface{}) *gomock.Call

Restore indicates an expected call of Restore.

func (*MockFSMMockRecorder) Snapshot

func (mr *MockFSMMockRecorder) Snapshot() *gomock.Call

Snapshot indicates an expected call of Snapshot.

type MockFSMSnapshot

type MockFSMSnapshot struct {
	// contains filtered or unexported fields
}

MockFSMSnapshot is a mock of FSMSnapshot interface.

func NewMockFSMSnapshot

func NewMockFSMSnapshot(ctrl *gomock.Controller) *MockFSMSnapshot

NewMockFSMSnapshot creates a new mock instance.

func (*MockFSMSnapshot) EXPECT

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

func (*MockFSMSnapshot) Persist

func (m *MockFSMSnapshot) Persist(sink raft.SnapshotSink) error

Persist mocks base method.

func (*MockFSMSnapshot) Release

func (m *MockFSMSnapshot) Release()

Release mocks base method.

type MockFSMSnapshotMockRecorder

type MockFSMSnapshotMockRecorder struct {
	// contains filtered or unexported fields
}

MockFSMSnapshotMockRecorder is the mock recorder for MockFSMSnapshot.

func (*MockFSMSnapshotMockRecorder) Persist

func (mr *MockFSMSnapshotMockRecorder) Persist(sink interface{}) *gomock.Call

Persist indicates an expected call of Persist.

func (*MockFSMSnapshotMockRecorder) Release

func (mr *MockFSMSnapshotMockRecorder) Release() *gomock.Call

Release indicates an expected call of Release.

Jump to

Keyboard shortcuts

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