mocktransport

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 mocktransport is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemTransport

func NewInMemTransport(addr raft.ServerAddress) (raft.ServerAddress, transport.Transport)

NewInMemTransport returns in-memory transport

Types

type MockTransport

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

MockTransport is a mock of Transport interface

func NewMockTransport

func NewMockTransport(ctrl *gomock.Controller) *MockTransport

NewMockTransport creates a new mock instance

func (*MockTransport) AppendEntries

AppendEntries mocks base method

func (*MockTransport) AppendEntriesPipeline

func (m *MockTransport) AppendEntriesPipeline(id raft.ServerID, target raft.ServerAddress) (raft.AppendPipeline, error)

AppendEntriesPipeline mocks base method

func (*MockTransport) Consumer

func (m *MockTransport) Consumer() <-chan raft.RPC

Consumer mocks base method

func (*MockTransport) DecodePeer

func (m *MockTransport) DecodePeer(arg0 []byte) raft.ServerAddress

DecodePeer mocks base method

func (*MockTransport) EXPECT

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

func (*MockTransport) EncodePeer

func (m *MockTransport) EncodePeer(id raft.ServerID, addr raft.ServerAddress) []byte

EncodePeer mocks base method

func (*MockTransport) InstallSnapshot

InstallSnapshot mocks base method

func (*MockTransport) LocalAddr

func (m *MockTransport) LocalAddr() raft.ServerAddress

LocalAddr mocks base method

func (*MockTransport) RequestVote

RequestVote mocks base method

func (*MockTransport) SetHeartbeatHandler

func (m *MockTransport) SetHeartbeatHandler(cb func(raft.RPC))

SetHeartbeatHandler mocks base method

func (*MockTransport) TimeoutNow

TimeoutNow mocks base method

type MockTransportMockRecorder

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

MockTransportMockRecorder is the mock recorder for MockTransport

func (*MockTransportMockRecorder) AppendEntries

func (mr *MockTransportMockRecorder) AppendEntries(id, target, args, resp interface{}) *gomock.Call

AppendEntries indicates an expected call of AppendEntries

func (*MockTransportMockRecorder) AppendEntriesPipeline

func (mr *MockTransportMockRecorder) AppendEntriesPipeline(id, target interface{}) *gomock.Call

AppendEntriesPipeline indicates an expected call of AppendEntriesPipeline

func (*MockTransportMockRecorder) Consumer

func (mr *MockTransportMockRecorder) Consumer() *gomock.Call

Consumer indicates an expected call of Consumer

func (*MockTransportMockRecorder) DecodePeer

func (mr *MockTransportMockRecorder) DecodePeer(arg0 interface{}) *gomock.Call

DecodePeer indicates an expected call of DecodePeer

func (*MockTransportMockRecorder) EncodePeer

func (mr *MockTransportMockRecorder) EncodePeer(id, addr interface{}) *gomock.Call

EncodePeer indicates an expected call of EncodePeer

func (*MockTransportMockRecorder) InstallSnapshot

func (mr *MockTransportMockRecorder) InstallSnapshot(id, target, args, resp, data interface{}) *gomock.Call

InstallSnapshot indicates an expected call of InstallSnapshot

func (*MockTransportMockRecorder) LocalAddr

func (mr *MockTransportMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr

func (*MockTransportMockRecorder) RequestVote

func (mr *MockTransportMockRecorder) RequestVote(id, target, args, resp interface{}) *gomock.Call

RequestVote indicates an expected call of RequestVote

func (*MockTransportMockRecorder) SetHeartbeatHandler

func (mr *MockTransportMockRecorder) SetHeartbeatHandler(cb interface{}) *gomock.Call

SetHeartbeatHandler indicates an expected call of SetHeartbeatHandler

func (*MockTransportMockRecorder) TimeoutNow

func (mr *MockTransportMockRecorder) TimeoutNow(id, target, args, resp interface{}) *gomock.Call

TimeoutNow indicates an expected call of TimeoutNow

Jump to

Keyboard shortcuts

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