mockraftnodepb

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRaftNodeServiceClient

type MockRaftNodeServiceClient struct {
	mock.Mock
}

MockRaftNodeServiceClient is an autogenerated mock type for the RaftNodeServiceClient type

func NewMockRaftNodeServiceClient

func NewMockRaftNodeServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRaftNodeServiceClient

NewMockRaftNodeServiceClient creates a new instance of MockRaftNodeServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockRaftNodeServiceClient) AddNode

AddNode provides a mock function with given fields: ctx, in, opts

func (*MockRaftNodeServiceClient) DemoteLeader

DemoteLeader provides a mock function with given fields: ctx, in, opts

func (*MockRaftNodeServiceClient) EXPECT

func (*MockRaftNodeServiceClient) NodeInfo

NodeInfo provides a mock function with given fields: ctx, in, opts

func (*MockRaftNodeServiceClient) PromoteToLeader

PromoteToLeader provides a mock function with given fields: ctx, in, opts

func (*MockRaftNodeServiceClient) ReadIndex

ReadIndex provides a mock function with given fields: ctx, in, opts

func (*MockRaftNodeServiceClient) RemoveNode

RemoveNode provides a mock function with given fields: ctx, in, opts

type MockRaftNodeServiceClient_AddNode_Call

type MockRaftNodeServiceClient_AddNode_Call struct {
	*mock.Call
}

MockRaftNodeServiceClient_AddNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNode'

func (*MockRaftNodeServiceClient_AddNode_Call) Return

func (*MockRaftNodeServiceClient_AddNode_Call) Run

type MockRaftNodeServiceClient_DemoteLeader_Call

type MockRaftNodeServiceClient_DemoteLeader_Call struct {
	*mock.Call
}

MockRaftNodeServiceClient_DemoteLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DemoteLeader'

func (*MockRaftNodeServiceClient_DemoteLeader_Call) Return

func (*MockRaftNodeServiceClient_DemoteLeader_Call) Run

type MockRaftNodeServiceClient_Expecter

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

func (*MockRaftNodeServiceClient_Expecter) AddNode

func (_e *MockRaftNodeServiceClient_Expecter) AddNode(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_AddNode_Call

AddNode is a helper method to define mock.On call

  • ctx context.Context
  • in *raftnodepb.AddNodeRequest
  • opts ...grpc.CallOption

func (*MockRaftNodeServiceClient_Expecter) DemoteLeader

func (_e *MockRaftNodeServiceClient_Expecter) DemoteLeader(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_DemoteLeader_Call

DemoteLeader is a helper method to define mock.On call

  • ctx context.Context
  • in *raftnodepb.DemoteLeaderRequest
  • opts ...grpc.CallOption

func (*MockRaftNodeServiceClient_Expecter) NodeInfo

func (_e *MockRaftNodeServiceClient_Expecter) NodeInfo(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_NodeInfo_Call

NodeInfo is a helper method to define mock.On call

  • ctx context.Context
  • in *raftnodepb.NodeInfoRequest
  • opts ...grpc.CallOption

func (*MockRaftNodeServiceClient_Expecter) PromoteToLeader

func (_e *MockRaftNodeServiceClient_Expecter) PromoteToLeader(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_PromoteToLeader_Call

PromoteToLeader is a helper method to define mock.On call

  • ctx context.Context
  • in *raftnodepb.PromoteToLeaderRequest
  • opts ...grpc.CallOption

func (*MockRaftNodeServiceClient_Expecter) ReadIndex

func (_e *MockRaftNodeServiceClient_Expecter) ReadIndex(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_ReadIndex_Call

ReadIndex is a helper method to define mock.On call

  • ctx context.Context
  • in *raftnodepb.ReadIndexRequest
  • opts ...grpc.CallOption

func (*MockRaftNodeServiceClient_Expecter) RemoveNode

func (_e *MockRaftNodeServiceClient_Expecter) RemoveNode(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_RemoveNode_Call

RemoveNode is a helper method to define mock.On call

  • ctx context.Context
  • in *raftnodepb.RemoveNodeRequest
  • opts ...grpc.CallOption

type MockRaftNodeServiceClient_NodeInfo_Call

type MockRaftNodeServiceClient_NodeInfo_Call struct {
	*mock.Call
}

MockRaftNodeServiceClient_NodeInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeInfo'

func (*MockRaftNodeServiceClient_NodeInfo_Call) Return

func (*MockRaftNodeServiceClient_NodeInfo_Call) Run

type MockRaftNodeServiceClient_PromoteToLeader_Call

type MockRaftNodeServiceClient_PromoteToLeader_Call struct {
	*mock.Call
}

MockRaftNodeServiceClient_PromoteToLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PromoteToLeader'

func (*MockRaftNodeServiceClient_PromoteToLeader_Call) Return

func (*MockRaftNodeServiceClient_PromoteToLeader_Call) Run

type MockRaftNodeServiceClient_ReadIndex_Call

type MockRaftNodeServiceClient_ReadIndex_Call struct {
	*mock.Call
}

MockRaftNodeServiceClient_ReadIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadIndex'

func (*MockRaftNodeServiceClient_ReadIndex_Call) Return

func (*MockRaftNodeServiceClient_ReadIndex_Call) Run

type MockRaftNodeServiceClient_RemoveNode_Call

type MockRaftNodeServiceClient_RemoveNode_Call struct {
	*mock.Call
}

MockRaftNodeServiceClient_RemoveNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveNode'

func (*MockRaftNodeServiceClient_RemoveNode_Call) Return

func (*MockRaftNodeServiceClient_RemoveNode_Call) Run

type MockRaftNodeServiceServer

type MockRaftNodeServiceServer struct {
	mock.Mock
}

MockRaftNodeServiceServer is an autogenerated mock type for the RaftNodeServiceServer type

func NewMockRaftNodeServiceServer

func NewMockRaftNodeServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRaftNodeServiceServer

NewMockRaftNodeServiceServer creates a new instance of MockRaftNodeServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockRaftNodeServiceServer) AddNode

AddNode provides a mock function with given fields: _a0, _a1

func (*MockRaftNodeServiceServer) DemoteLeader

DemoteLeader provides a mock function with given fields: _a0, _a1

func (*MockRaftNodeServiceServer) EXPECT

func (*MockRaftNodeServiceServer) NodeInfo

NodeInfo provides a mock function with given fields: _a0, _a1

func (*MockRaftNodeServiceServer) PromoteToLeader

PromoteToLeader provides a mock function with given fields: _a0, _a1

func (*MockRaftNodeServiceServer) ReadIndex

ReadIndex provides a mock function with given fields: _a0, _a1

func (*MockRaftNodeServiceServer) RemoveNode

RemoveNode provides a mock function with given fields: _a0, _a1

type MockRaftNodeServiceServer_AddNode_Call

type MockRaftNodeServiceServer_AddNode_Call struct {
	*mock.Call
}

MockRaftNodeServiceServer_AddNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNode'

func (*MockRaftNodeServiceServer_AddNode_Call) Return

func (*MockRaftNodeServiceServer_AddNode_Call) Run

type MockRaftNodeServiceServer_DemoteLeader_Call

type MockRaftNodeServiceServer_DemoteLeader_Call struct {
	*mock.Call
}

MockRaftNodeServiceServer_DemoteLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DemoteLeader'

func (*MockRaftNodeServiceServer_DemoteLeader_Call) Return

func (*MockRaftNodeServiceServer_DemoteLeader_Call) Run

type MockRaftNodeServiceServer_Expecter

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

func (*MockRaftNodeServiceServer_Expecter) AddNode

func (_e *MockRaftNodeServiceServer_Expecter) AddNode(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_AddNode_Call

AddNode is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *raftnodepb.AddNodeRequest

func (*MockRaftNodeServiceServer_Expecter) DemoteLeader

func (_e *MockRaftNodeServiceServer_Expecter) DemoteLeader(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_DemoteLeader_Call

DemoteLeader is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *raftnodepb.DemoteLeaderRequest

func (*MockRaftNodeServiceServer_Expecter) NodeInfo

func (_e *MockRaftNodeServiceServer_Expecter) NodeInfo(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_NodeInfo_Call

NodeInfo is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *raftnodepb.NodeInfoRequest

func (*MockRaftNodeServiceServer_Expecter) PromoteToLeader

func (_e *MockRaftNodeServiceServer_Expecter) PromoteToLeader(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_PromoteToLeader_Call

PromoteToLeader is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *raftnodepb.PromoteToLeaderRequest

func (*MockRaftNodeServiceServer_Expecter) ReadIndex

func (_e *MockRaftNodeServiceServer_Expecter) ReadIndex(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_ReadIndex_Call

ReadIndex is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *raftnodepb.ReadIndexRequest

func (*MockRaftNodeServiceServer_Expecter) RemoveNode

func (_e *MockRaftNodeServiceServer_Expecter) RemoveNode(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_RemoveNode_Call

RemoveNode is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *raftnodepb.RemoveNodeRequest

type MockRaftNodeServiceServer_NodeInfo_Call

type MockRaftNodeServiceServer_NodeInfo_Call struct {
	*mock.Call
}

MockRaftNodeServiceServer_NodeInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeInfo'

func (*MockRaftNodeServiceServer_NodeInfo_Call) Return

func (*MockRaftNodeServiceServer_NodeInfo_Call) Run

type MockRaftNodeServiceServer_PromoteToLeader_Call

type MockRaftNodeServiceServer_PromoteToLeader_Call struct {
	*mock.Call
}

MockRaftNodeServiceServer_PromoteToLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PromoteToLeader'

func (*MockRaftNodeServiceServer_PromoteToLeader_Call) Return

func (*MockRaftNodeServiceServer_PromoteToLeader_Call) Run

type MockRaftNodeServiceServer_ReadIndex_Call

type MockRaftNodeServiceServer_ReadIndex_Call struct {
	*mock.Call
}

MockRaftNodeServiceServer_ReadIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadIndex'

func (*MockRaftNodeServiceServer_ReadIndex_Call) Return

func (*MockRaftNodeServiceServer_ReadIndex_Call) Run

type MockRaftNodeServiceServer_RemoveNode_Call

type MockRaftNodeServiceServer_RemoveNode_Call struct {
	*mock.Call
}

MockRaftNodeServiceServer_RemoveNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveNode'

func (*MockRaftNodeServiceServer_RemoveNode_Call) Return

func (*MockRaftNodeServiceServer_RemoveNode_Call) Run

type MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call

type MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call struct {
	*mock.Call
}

MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedRaftNodeServiceServer'

func (*MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call) Return

func (*MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call) Run

func (*MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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