mocklogstore

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: 4 Imported by: 0

Documentation

Overview

Package mocklogstore is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInmemStore

func NewInmemStore() logstore.LogStore

NewInmemStore returns in-memory log store

Types

type MockLogStore

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

MockLogStore is a mock of LogStore interface

func NewMockLogStore

func NewMockLogStore(ctrl *gomock.Controller) *MockLogStore

NewMockLogStore creates a new mock instance

func (*MockLogStore) DeleteRange

func (m *MockLogStore) DeleteRange(min, max uint64) error

DeleteRange mocks base method

func (*MockLogStore) EXPECT

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

func (*MockLogStore) FirstIndex

func (m *MockLogStore) FirstIndex() (uint64, error)

FirstIndex mocks base method

func (*MockLogStore) GetLog

func (m *MockLogStore) GetLog(index uint64, log *raft.Log) error

GetLog mocks base method

func (*MockLogStore) LastIndex

func (m *MockLogStore) LastIndex() (uint64, error)

LastIndex mocks base method

func (*MockLogStore) StoreLog

func (m *MockLogStore) StoreLog(log *raft.Log) error

StoreLog mocks base method

func (*MockLogStore) StoreLogs

func (m *MockLogStore) StoreLogs(logs []*raft.Log) error

StoreLogs mocks base method

type MockLogStoreMockRecorder

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

MockLogStoreMockRecorder is the mock recorder for MockLogStore

func (*MockLogStoreMockRecorder) DeleteRange

func (mr *MockLogStoreMockRecorder) DeleteRange(min, max interface{}) *gomock.Call

DeleteRange indicates an expected call of DeleteRange

func (*MockLogStoreMockRecorder) FirstIndex

func (mr *MockLogStoreMockRecorder) FirstIndex() *gomock.Call

FirstIndex indicates an expected call of FirstIndex

func (*MockLogStoreMockRecorder) GetLog

func (mr *MockLogStoreMockRecorder) GetLog(index, log interface{}) *gomock.Call

GetLog indicates an expected call of GetLog

func (*MockLogStoreMockRecorder) LastIndex

func (mr *MockLogStoreMockRecorder) LastIndex() *gomock.Call

LastIndex indicates an expected call of LastIndex

func (*MockLogStoreMockRecorder) StoreLog

func (mr *MockLogStoreMockRecorder) StoreLog(log interface{}) *gomock.Call

StoreLog indicates an expected call of StoreLog

func (*MockLogStoreMockRecorder) StoreLogs

func (mr *MockLogStoreMockRecorder) StoreLogs(logs interface{}) *gomock.Call

StoreLogs indicates an expected call of StoreLogs

Jump to

Keyboard shortcuts

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