Documentation ¶
Index ¶
- type MockRaftNodeServiceClient
- func (_m *MockRaftNodeServiceClient) AddNode(ctx context.Context, in *raftnodepb.AddNodeRequest, opts ...grpc.CallOption) (*raftnodepb.AddNodeResponse, error)
- func (_m *MockRaftNodeServiceClient) DemoteLeader(ctx context.Context, in *raftnodepb.DemoteLeaderRequest, ...) (*raftnodepb.DemoteLeaderResponse, error)
- func (_m *MockRaftNodeServiceClient) EXPECT() *MockRaftNodeServiceClient_Expecter
- func (_m *MockRaftNodeServiceClient) NodeInfo(ctx context.Context, in *raftnodepb.NodeInfoRequest, opts ...grpc.CallOption) (*raftnodepb.NodeInfoResponse, error)
- func (_m *MockRaftNodeServiceClient) PromoteToLeader(ctx context.Context, in *raftnodepb.PromoteToLeaderRequest, ...) (*raftnodepb.PromoteToLeaderResponse, error)
- func (_m *MockRaftNodeServiceClient) ReadIndex(ctx context.Context, in *raftnodepb.ReadIndexRequest, opts ...grpc.CallOption) (*raftnodepb.ReadIndexResponse, error)
- func (_m *MockRaftNodeServiceClient) RemoveNode(ctx context.Context, in *raftnodepb.RemoveNodeRequest, opts ...grpc.CallOption) (*raftnodepb.RemoveNodeResponse, error)
- type MockRaftNodeServiceClient_AddNode_Call
- func (_c *MockRaftNodeServiceClient_AddNode_Call) Return(_a0 *raftnodepb.AddNodeResponse, _a1 error) *MockRaftNodeServiceClient_AddNode_Call
- func (_c *MockRaftNodeServiceClient_AddNode_Call) Run(...) *MockRaftNodeServiceClient_AddNode_Call
- func (_c *MockRaftNodeServiceClient_AddNode_Call) RunAndReturn(...) *MockRaftNodeServiceClient_AddNode_Call
- type MockRaftNodeServiceClient_DemoteLeader_Call
- func (_c *MockRaftNodeServiceClient_DemoteLeader_Call) Return(_a0 *raftnodepb.DemoteLeaderResponse, _a1 error) *MockRaftNodeServiceClient_DemoteLeader_Call
- func (_c *MockRaftNodeServiceClient_DemoteLeader_Call) Run(run func(ctx context.Context, in *raftnodepb.DemoteLeaderRequest, ...)) *MockRaftNodeServiceClient_DemoteLeader_Call
- func (_c *MockRaftNodeServiceClient_DemoteLeader_Call) RunAndReturn(...) *MockRaftNodeServiceClient_DemoteLeader_Call
- type MockRaftNodeServiceClient_Expecter
- func (_e *MockRaftNodeServiceClient_Expecter) AddNode(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_AddNode_Call
- func (_e *MockRaftNodeServiceClient_Expecter) DemoteLeader(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_DemoteLeader_Call
- func (_e *MockRaftNodeServiceClient_Expecter) NodeInfo(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_NodeInfo_Call
- func (_e *MockRaftNodeServiceClient_Expecter) PromoteToLeader(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_PromoteToLeader_Call
- func (_e *MockRaftNodeServiceClient_Expecter) ReadIndex(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_ReadIndex_Call
- func (_e *MockRaftNodeServiceClient_Expecter) RemoveNode(ctx interface{}, in interface{}, opts ...interface{}) *MockRaftNodeServiceClient_RemoveNode_Call
- type MockRaftNodeServiceClient_NodeInfo_Call
- func (_c *MockRaftNodeServiceClient_NodeInfo_Call) Return(_a0 *raftnodepb.NodeInfoResponse, _a1 error) *MockRaftNodeServiceClient_NodeInfo_Call
- func (_c *MockRaftNodeServiceClient_NodeInfo_Call) Run(...) *MockRaftNodeServiceClient_NodeInfo_Call
- func (_c *MockRaftNodeServiceClient_NodeInfo_Call) RunAndReturn(...) *MockRaftNodeServiceClient_NodeInfo_Call
- type MockRaftNodeServiceClient_PromoteToLeader_Call
- func (_c *MockRaftNodeServiceClient_PromoteToLeader_Call) Return(_a0 *raftnodepb.PromoteToLeaderResponse, _a1 error) *MockRaftNodeServiceClient_PromoteToLeader_Call
- func (_c *MockRaftNodeServiceClient_PromoteToLeader_Call) Run(run func(ctx context.Context, in *raftnodepb.PromoteToLeaderRequest, ...)) *MockRaftNodeServiceClient_PromoteToLeader_Call
- func (_c *MockRaftNodeServiceClient_PromoteToLeader_Call) RunAndReturn(...) *MockRaftNodeServiceClient_PromoteToLeader_Call
- type MockRaftNodeServiceClient_ReadIndex_Call
- func (_c *MockRaftNodeServiceClient_ReadIndex_Call) Return(_a0 *raftnodepb.ReadIndexResponse, _a1 error) *MockRaftNodeServiceClient_ReadIndex_Call
- func (_c *MockRaftNodeServiceClient_ReadIndex_Call) Run(...) *MockRaftNodeServiceClient_ReadIndex_Call
- func (_c *MockRaftNodeServiceClient_ReadIndex_Call) RunAndReturn(...) *MockRaftNodeServiceClient_ReadIndex_Call
- type MockRaftNodeServiceClient_RemoveNode_Call
- func (_c *MockRaftNodeServiceClient_RemoveNode_Call) Return(_a0 *raftnodepb.RemoveNodeResponse, _a1 error) *MockRaftNodeServiceClient_RemoveNode_Call
- func (_c *MockRaftNodeServiceClient_RemoveNode_Call) Run(...) *MockRaftNodeServiceClient_RemoveNode_Call
- func (_c *MockRaftNodeServiceClient_RemoveNode_Call) RunAndReturn(...) *MockRaftNodeServiceClient_RemoveNode_Call
- type MockRaftNodeServiceServer
- func (_m *MockRaftNodeServiceServer) AddNode(_a0 context.Context, _a1 *raftnodepb.AddNodeRequest) (*raftnodepb.AddNodeResponse, error)
- func (_m *MockRaftNodeServiceServer) DemoteLeader(_a0 context.Context, _a1 *raftnodepb.DemoteLeaderRequest) (*raftnodepb.DemoteLeaderResponse, error)
- func (_m *MockRaftNodeServiceServer) EXPECT() *MockRaftNodeServiceServer_Expecter
- func (_m *MockRaftNodeServiceServer) NodeInfo(_a0 context.Context, _a1 *raftnodepb.NodeInfoRequest) (*raftnodepb.NodeInfoResponse, error)
- func (_m *MockRaftNodeServiceServer) PromoteToLeader(_a0 context.Context, _a1 *raftnodepb.PromoteToLeaderRequest) (*raftnodepb.PromoteToLeaderResponse, error)
- func (_m *MockRaftNodeServiceServer) ReadIndex(_a0 context.Context, _a1 *raftnodepb.ReadIndexRequest) (*raftnodepb.ReadIndexResponse, error)
- func (_m *MockRaftNodeServiceServer) RemoveNode(_a0 context.Context, _a1 *raftnodepb.RemoveNodeRequest) (*raftnodepb.RemoveNodeResponse, error)
- type MockRaftNodeServiceServer_AddNode_Call
- func (_c *MockRaftNodeServiceServer_AddNode_Call) Return(_a0 *raftnodepb.AddNodeResponse, _a1 error) *MockRaftNodeServiceServer_AddNode_Call
- func (_c *MockRaftNodeServiceServer_AddNode_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.AddNodeRequest)) *MockRaftNodeServiceServer_AddNode_Call
- func (_c *MockRaftNodeServiceServer_AddNode_Call) RunAndReturn(...) *MockRaftNodeServiceServer_AddNode_Call
- type MockRaftNodeServiceServer_DemoteLeader_Call
- func (_c *MockRaftNodeServiceServer_DemoteLeader_Call) Return(_a0 *raftnodepb.DemoteLeaderResponse, _a1 error) *MockRaftNodeServiceServer_DemoteLeader_Call
- func (_c *MockRaftNodeServiceServer_DemoteLeader_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.DemoteLeaderRequest)) *MockRaftNodeServiceServer_DemoteLeader_Call
- func (_c *MockRaftNodeServiceServer_DemoteLeader_Call) RunAndReturn(...) *MockRaftNodeServiceServer_DemoteLeader_Call
- type MockRaftNodeServiceServer_Expecter
- func (_e *MockRaftNodeServiceServer_Expecter) AddNode(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_AddNode_Call
- func (_e *MockRaftNodeServiceServer_Expecter) DemoteLeader(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_DemoteLeader_Call
- func (_e *MockRaftNodeServiceServer_Expecter) NodeInfo(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_NodeInfo_Call
- func (_e *MockRaftNodeServiceServer_Expecter) PromoteToLeader(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_PromoteToLeader_Call
- func (_e *MockRaftNodeServiceServer_Expecter) ReadIndex(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_ReadIndex_Call
- func (_e *MockRaftNodeServiceServer_Expecter) RemoveNode(_a0 interface{}, _a1 interface{}) *MockRaftNodeServiceServer_RemoveNode_Call
- type MockRaftNodeServiceServer_NodeInfo_Call
- func (_c *MockRaftNodeServiceServer_NodeInfo_Call) Return(_a0 *raftnodepb.NodeInfoResponse, _a1 error) *MockRaftNodeServiceServer_NodeInfo_Call
- func (_c *MockRaftNodeServiceServer_NodeInfo_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.NodeInfoRequest)) *MockRaftNodeServiceServer_NodeInfo_Call
- func (_c *MockRaftNodeServiceServer_NodeInfo_Call) RunAndReturn(...) *MockRaftNodeServiceServer_NodeInfo_Call
- type MockRaftNodeServiceServer_PromoteToLeader_Call
- func (_c *MockRaftNodeServiceServer_PromoteToLeader_Call) Return(_a0 *raftnodepb.PromoteToLeaderResponse, _a1 error) *MockRaftNodeServiceServer_PromoteToLeader_Call
- func (_c *MockRaftNodeServiceServer_PromoteToLeader_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.PromoteToLeaderRequest)) *MockRaftNodeServiceServer_PromoteToLeader_Call
- func (_c *MockRaftNodeServiceServer_PromoteToLeader_Call) RunAndReturn(...) *MockRaftNodeServiceServer_PromoteToLeader_Call
- type MockRaftNodeServiceServer_ReadIndex_Call
- func (_c *MockRaftNodeServiceServer_ReadIndex_Call) Return(_a0 *raftnodepb.ReadIndexResponse, _a1 error) *MockRaftNodeServiceServer_ReadIndex_Call
- func (_c *MockRaftNodeServiceServer_ReadIndex_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.ReadIndexRequest)) *MockRaftNodeServiceServer_ReadIndex_Call
- func (_c *MockRaftNodeServiceServer_ReadIndex_Call) RunAndReturn(...) *MockRaftNodeServiceServer_ReadIndex_Call
- type MockRaftNodeServiceServer_RemoveNode_Call
- func (_c *MockRaftNodeServiceServer_RemoveNode_Call) Return(_a0 *raftnodepb.RemoveNodeResponse, _a1 error) *MockRaftNodeServiceServer_RemoveNode_Call
- func (_c *MockRaftNodeServiceServer_RemoveNode_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.RemoveNodeRequest)) *MockRaftNodeServiceServer_RemoveNode_Call
- func (_c *MockRaftNodeServiceServer_RemoveNode_Call) RunAndReturn(...) *MockRaftNodeServiceServer_RemoveNode_Call
- type MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call
- func (_c *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call) Return() *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call
- func (_c *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call) Run(run func()) *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call
- func (_c *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call) RunAndReturn(run func()) *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRaftNodeServiceClient ¶
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 ¶
func (_m *MockRaftNodeServiceClient) AddNode(ctx context.Context, in *raftnodepb.AddNodeRequest, opts ...grpc.CallOption) (*raftnodepb.AddNodeResponse, error)
AddNode provides a mock function with given fields: ctx, in, opts
func (*MockRaftNodeServiceClient) DemoteLeader ¶
func (_m *MockRaftNodeServiceClient) DemoteLeader(ctx context.Context, in *raftnodepb.DemoteLeaderRequest, opts ...grpc.CallOption) (*raftnodepb.DemoteLeaderResponse, error)
DemoteLeader provides a mock function with given fields: ctx, in, opts
func (*MockRaftNodeServiceClient) EXPECT ¶
func (_m *MockRaftNodeServiceClient) EXPECT() *MockRaftNodeServiceClient_Expecter
func (*MockRaftNodeServiceClient) NodeInfo ¶
func (_m *MockRaftNodeServiceClient) NodeInfo(ctx context.Context, in *raftnodepb.NodeInfoRequest, opts ...grpc.CallOption) (*raftnodepb.NodeInfoResponse, error)
NodeInfo provides a mock function with given fields: ctx, in, opts
func (*MockRaftNodeServiceClient) PromoteToLeader ¶
func (_m *MockRaftNodeServiceClient) PromoteToLeader(ctx context.Context, in *raftnodepb.PromoteToLeaderRequest, opts ...grpc.CallOption) (*raftnodepb.PromoteToLeaderResponse, error)
PromoteToLeader provides a mock function with given fields: ctx, in, opts
func (*MockRaftNodeServiceClient) ReadIndex ¶
func (_m *MockRaftNodeServiceClient) ReadIndex(ctx context.Context, in *raftnodepb.ReadIndexRequest, opts ...grpc.CallOption) (*raftnodepb.ReadIndexResponse, error)
ReadIndex provides a mock function with given fields: ctx, in, opts
func (*MockRaftNodeServiceClient) RemoveNode ¶
func (_m *MockRaftNodeServiceClient) RemoveNode(ctx context.Context, in *raftnodepb.RemoveNodeRequest, opts ...grpc.CallOption) (*raftnodepb.RemoveNodeResponse, error)
RemoveNode provides a mock function with given fields: ctx, in, opts
type MockRaftNodeServiceClient_AddNode_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 (_c *MockRaftNodeServiceClient_AddNode_Call) Return(_a0 *raftnodepb.AddNodeResponse, _a1 error) *MockRaftNodeServiceClient_AddNode_Call
func (*MockRaftNodeServiceClient_AddNode_Call) Run ¶
func (_c *MockRaftNodeServiceClient_AddNode_Call) Run(run func(ctx context.Context, in *raftnodepb.AddNodeRequest, opts ...grpc.CallOption)) *MockRaftNodeServiceClient_AddNode_Call
func (*MockRaftNodeServiceClient_AddNode_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceClient_AddNode_Call) RunAndReturn(run func(context.Context, *raftnodepb.AddNodeRequest, ...grpc.CallOption) (*raftnodepb.AddNodeResponse, error)) *MockRaftNodeServiceClient_AddNode_Call
type MockRaftNodeServiceClient_DemoteLeader_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 (_c *MockRaftNodeServiceClient_DemoteLeader_Call) Return(_a0 *raftnodepb.DemoteLeaderResponse, _a1 error) *MockRaftNodeServiceClient_DemoteLeader_Call
func (*MockRaftNodeServiceClient_DemoteLeader_Call) Run ¶
func (_c *MockRaftNodeServiceClient_DemoteLeader_Call) Run(run func(ctx context.Context, in *raftnodepb.DemoteLeaderRequest, opts ...grpc.CallOption)) *MockRaftNodeServiceClient_DemoteLeader_Call
func (*MockRaftNodeServiceClient_DemoteLeader_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceClient_DemoteLeader_Call) RunAndReturn(run func(context.Context, *raftnodepb.DemoteLeaderRequest, ...grpc.CallOption) (*raftnodepb.DemoteLeaderResponse, error)) *MockRaftNodeServiceClient_DemoteLeader_Call
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 ¶
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 (_c *MockRaftNodeServiceClient_NodeInfo_Call) Return(_a0 *raftnodepb.NodeInfoResponse, _a1 error) *MockRaftNodeServiceClient_NodeInfo_Call
func (*MockRaftNodeServiceClient_NodeInfo_Call) Run ¶
func (_c *MockRaftNodeServiceClient_NodeInfo_Call) Run(run func(ctx context.Context, in *raftnodepb.NodeInfoRequest, opts ...grpc.CallOption)) *MockRaftNodeServiceClient_NodeInfo_Call
func (*MockRaftNodeServiceClient_NodeInfo_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceClient_NodeInfo_Call) RunAndReturn(run func(context.Context, *raftnodepb.NodeInfoRequest, ...grpc.CallOption) (*raftnodepb.NodeInfoResponse, error)) *MockRaftNodeServiceClient_NodeInfo_Call
type MockRaftNodeServiceClient_PromoteToLeader_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 (_c *MockRaftNodeServiceClient_PromoteToLeader_Call) Return(_a0 *raftnodepb.PromoteToLeaderResponse, _a1 error) *MockRaftNodeServiceClient_PromoteToLeader_Call
func (*MockRaftNodeServiceClient_PromoteToLeader_Call) Run ¶
func (_c *MockRaftNodeServiceClient_PromoteToLeader_Call) Run(run func(ctx context.Context, in *raftnodepb.PromoteToLeaderRequest, opts ...grpc.CallOption)) *MockRaftNodeServiceClient_PromoteToLeader_Call
func (*MockRaftNodeServiceClient_PromoteToLeader_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceClient_PromoteToLeader_Call) RunAndReturn(run func(context.Context, *raftnodepb.PromoteToLeaderRequest, ...grpc.CallOption) (*raftnodepb.PromoteToLeaderResponse, error)) *MockRaftNodeServiceClient_PromoteToLeader_Call
type MockRaftNodeServiceClient_ReadIndex_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 (_c *MockRaftNodeServiceClient_ReadIndex_Call) Return(_a0 *raftnodepb.ReadIndexResponse, _a1 error) *MockRaftNodeServiceClient_ReadIndex_Call
func (*MockRaftNodeServiceClient_ReadIndex_Call) Run ¶
func (_c *MockRaftNodeServiceClient_ReadIndex_Call) Run(run func(ctx context.Context, in *raftnodepb.ReadIndexRequest, opts ...grpc.CallOption)) *MockRaftNodeServiceClient_ReadIndex_Call
func (*MockRaftNodeServiceClient_ReadIndex_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceClient_ReadIndex_Call) RunAndReturn(run func(context.Context, *raftnodepb.ReadIndexRequest, ...grpc.CallOption) (*raftnodepb.ReadIndexResponse, error)) *MockRaftNodeServiceClient_ReadIndex_Call
type MockRaftNodeServiceClient_RemoveNode_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 (_c *MockRaftNodeServiceClient_RemoveNode_Call) Return(_a0 *raftnodepb.RemoveNodeResponse, _a1 error) *MockRaftNodeServiceClient_RemoveNode_Call
func (*MockRaftNodeServiceClient_RemoveNode_Call) Run ¶
func (_c *MockRaftNodeServiceClient_RemoveNode_Call) Run(run func(ctx context.Context, in *raftnodepb.RemoveNodeRequest, opts ...grpc.CallOption)) *MockRaftNodeServiceClient_RemoveNode_Call
func (*MockRaftNodeServiceClient_RemoveNode_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceClient_RemoveNode_Call) RunAndReturn(run func(context.Context, *raftnodepb.RemoveNodeRequest, ...grpc.CallOption) (*raftnodepb.RemoveNodeResponse, error)) *MockRaftNodeServiceClient_RemoveNode_Call
type MockRaftNodeServiceServer ¶
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 ¶
func (_m *MockRaftNodeServiceServer) AddNode(_a0 context.Context, _a1 *raftnodepb.AddNodeRequest) (*raftnodepb.AddNodeResponse, error)
AddNode provides a mock function with given fields: _a0, _a1
func (*MockRaftNodeServiceServer) DemoteLeader ¶
func (_m *MockRaftNodeServiceServer) DemoteLeader(_a0 context.Context, _a1 *raftnodepb.DemoteLeaderRequest) (*raftnodepb.DemoteLeaderResponse, error)
DemoteLeader provides a mock function with given fields: _a0, _a1
func (*MockRaftNodeServiceServer) EXPECT ¶
func (_m *MockRaftNodeServiceServer) EXPECT() *MockRaftNodeServiceServer_Expecter
func (*MockRaftNodeServiceServer) NodeInfo ¶
func (_m *MockRaftNodeServiceServer) NodeInfo(_a0 context.Context, _a1 *raftnodepb.NodeInfoRequest) (*raftnodepb.NodeInfoResponse, error)
NodeInfo provides a mock function with given fields: _a0, _a1
func (*MockRaftNodeServiceServer) PromoteToLeader ¶
func (_m *MockRaftNodeServiceServer) PromoteToLeader(_a0 context.Context, _a1 *raftnodepb.PromoteToLeaderRequest) (*raftnodepb.PromoteToLeaderResponse, error)
PromoteToLeader provides a mock function with given fields: _a0, _a1
func (*MockRaftNodeServiceServer) ReadIndex ¶
func (_m *MockRaftNodeServiceServer) ReadIndex(_a0 context.Context, _a1 *raftnodepb.ReadIndexRequest) (*raftnodepb.ReadIndexResponse, error)
ReadIndex provides a mock function with given fields: _a0, _a1
func (*MockRaftNodeServiceServer) RemoveNode ¶
func (_m *MockRaftNodeServiceServer) RemoveNode(_a0 context.Context, _a1 *raftnodepb.RemoveNodeRequest) (*raftnodepb.RemoveNodeResponse, error)
RemoveNode provides a mock function with given fields: _a0, _a1
type MockRaftNodeServiceServer_AddNode_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 (_c *MockRaftNodeServiceServer_AddNode_Call) Return(_a0 *raftnodepb.AddNodeResponse, _a1 error) *MockRaftNodeServiceServer_AddNode_Call
func (*MockRaftNodeServiceServer_AddNode_Call) Run ¶
func (_c *MockRaftNodeServiceServer_AddNode_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.AddNodeRequest)) *MockRaftNodeServiceServer_AddNode_Call
func (*MockRaftNodeServiceServer_AddNode_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceServer_AddNode_Call) RunAndReturn(run func(context.Context, *raftnodepb.AddNodeRequest) (*raftnodepb.AddNodeResponse, error)) *MockRaftNodeServiceServer_AddNode_Call
type MockRaftNodeServiceServer_DemoteLeader_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 (_c *MockRaftNodeServiceServer_DemoteLeader_Call) Return(_a0 *raftnodepb.DemoteLeaderResponse, _a1 error) *MockRaftNodeServiceServer_DemoteLeader_Call
func (*MockRaftNodeServiceServer_DemoteLeader_Call) Run ¶
func (_c *MockRaftNodeServiceServer_DemoteLeader_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.DemoteLeaderRequest)) *MockRaftNodeServiceServer_DemoteLeader_Call
func (*MockRaftNodeServiceServer_DemoteLeader_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceServer_DemoteLeader_Call) RunAndReturn(run func(context.Context, *raftnodepb.DemoteLeaderRequest) (*raftnodepb.DemoteLeaderResponse, error)) *MockRaftNodeServiceServer_DemoteLeader_Call
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 ¶
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 (_c *MockRaftNodeServiceServer_NodeInfo_Call) Return(_a0 *raftnodepb.NodeInfoResponse, _a1 error) *MockRaftNodeServiceServer_NodeInfo_Call
func (*MockRaftNodeServiceServer_NodeInfo_Call) Run ¶
func (_c *MockRaftNodeServiceServer_NodeInfo_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.NodeInfoRequest)) *MockRaftNodeServiceServer_NodeInfo_Call
func (*MockRaftNodeServiceServer_NodeInfo_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceServer_NodeInfo_Call) RunAndReturn(run func(context.Context, *raftnodepb.NodeInfoRequest) (*raftnodepb.NodeInfoResponse, error)) *MockRaftNodeServiceServer_NodeInfo_Call
type MockRaftNodeServiceServer_PromoteToLeader_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 (_c *MockRaftNodeServiceServer_PromoteToLeader_Call) Return(_a0 *raftnodepb.PromoteToLeaderResponse, _a1 error) *MockRaftNodeServiceServer_PromoteToLeader_Call
func (*MockRaftNodeServiceServer_PromoteToLeader_Call) Run ¶
func (_c *MockRaftNodeServiceServer_PromoteToLeader_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.PromoteToLeaderRequest)) *MockRaftNodeServiceServer_PromoteToLeader_Call
func (*MockRaftNodeServiceServer_PromoteToLeader_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceServer_PromoteToLeader_Call) RunAndReturn(run func(context.Context, *raftnodepb.PromoteToLeaderRequest) (*raftnodepb.PromoteToLeaderResponse, error)) *MockRaftNodeServiceServer_PromoteToLeader_Call
type MockRaftNodeServiceServer_ReadIndex_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 (_c *MockRaftNodeServiceServer_ReadIndex_Call) Return(_a0 *raftnodepb.ReadIndexResponse, _a1 error) *MockRaftNodeServiceServer_ReadIndex_Call
func (*MockRaftNodeServiceServer_ReadIndex_Call) Run ¶
func (_c *MockRaftNodeServiceServer_ReadIndex_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.ReadIndexRequest)) *MockRaftNodeServiceServer_ReadIndex_Call
func (*MockRaftNodeServiceServer_ReadIndex_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceServer_ReadIndex_Call) RunAndReturn(run func(context.Context, *raftnodepb.ReadIndexRequest) (*raftnodepb.ReadIndexResponse, error)) *MockRaftNodeServiceServer_ReadIndex_Call
type MockRaftNodeServiceServer_RemoveNode_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 (_c *MockRaftNodeServiceServer_RemoveNode_Call) Return(_a0 *raftnodepb.RemoveNodeResponse, _a1 error) *MockRaftNodeServiceServer_RemoveNode_Call
func (*MockRaftNodeServiceServer_RemoveNode_Call) Run ¶
func (_c *MockRaftNodeServiceServer_RemoveNode_Call) Run(run func(_a0 context.Context, _a1 *raftnodepb.RemoveNodeRequest)) *MockRaftNodeServiceServer_RemoveNode_Call
func (*MockRaftNodeServiceServer_RemoveNode_Call) RunAndReturn ¶
func (_c *MockRaftNodeServiceServer_RemoveNode_Call) RunAndReturn(run func(context.Context, *raftnodepb.RemoveNodeRequest) (*raftnodepb.RemoveNodeResponse, error)) *MockRaftNodeServiceServer_RemoveNode_Call
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) RunAndReturn ¶
func (_c *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call) RunAndReturn(run func()) *MockRaftNodeServiceServer_mustEmbedUnimplementedRaftNodeServiceServer_Call