mocksnapshotstore

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

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocksnapshotstore is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemSnapshotStore

func NewInMemSnapshotStore() snapshotstore.SnapshotStore

NewInMemSnapshotStore returns in-memory SnapshotStore

Types

type MockSnapshotStore

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

MockSnapshotStore is a mock of SnapshotStore interface

func NewMockSnapshotStore

func NewMockSnapshotStore(ctrl *gomock.Controller) *MockSnapshotStore

NewMockSnapshotStore creates a new mock instance

func (*MockSnapshotStore) Create

func (m *MockSnapshotStore) Create(version raft.SnapshotVersion, index, term uint64, configuration raft.Configuration, configurationIndex uint64, trans raft.Transport) (raft.SnapshotSink, error)

Create mocks base method

func (*MockSnapshotStore) EXPECT

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

func (*MockSnapshotStore) List

func (m *MockSnapshotStore) List() ([]*raft.SnapshotMeta, error)

List mocks base method

func (*MockSnapshotStore) Open

Open mocks base method

type MockSnapshotStoreMockRecorder

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

MockSnapshotStoreMockRecorder is the mock recorder for MockSnapshotStore

func (*MockSnapshotStoreMockRecorder) Create

func (mr *MockSnapshotStoreMockRecorder) Create(version, index, term, configuration, configurationIndex, trans interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockSnapshotStoreMockRecorder) List

List indicates an expected call of List

func (*MockSnapshotStoreMockRecorder) Open

func (mr *MockSnapshotStoreMockRecorder) Open(id interface{}) *gomock.Call

Open indicates an expected call of Open

Jump to

Keyboard shortcuts

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