mocks

package
v2.0.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient added in v2.0.3

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

MockClient is a mock of Client interface.

func NewMockClient added in v2.0.3

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) AnnounceTask added in v2.0.3

func (m *MockClient) AnnounceTask(arg0 context.Context, arg1 *v1.AnnounceTaskRequest, arg2 ...grpc.CallOption) error

AnnounceTask mocks base method.

func (*MockClient) EXPECT added in v2.0.3

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) LeaveTask added in v2.0.3

func (m *MockClient) LeaveTask(arg0 context.Context, arg1 *v1.PeerTarget, arg2 ...grpc.CallOption) error

LeaveTask mocks base method.

func (*MockClient) RegisterPeerTask added in v2.0.3

func (m *MockClient) RegisterPeerTask(arg0 context.Context, arg1 *v1.PeerTaskRequest, arg2 ...grpc.CallOption) (*v1.RegisterResult, error)

RegisterPeerTask mocks base method.

func (*MockClient) ReportPeerResult added in v2.0.3

func (m *MockClient) ReportPeerResult(arg0 context.Context, arg1 *v1.PeerResult, arg2 ...grpc.CallOption) error

ReportPeerResult mocks base method.

func (*MockClient) ReportPieceResult added in v2.0.3

func (m *MockClient) ReportPieceResult(arg0 context.Context, arg1 *v1.PeerTaskRequest, arg2 ...grpc.CallOption) (v1.Scheduler_ReportPieceResultClient, error)

ReportPieceResult mocks base method.

func (*MockClient) StatTask added in v2.0.3

func (m *MockClient) StatTask(arg0 context.Context, arg1 *v1.StatTaskRequest, arg2 ...grpc.CallOption) (*v1.Task, error)

StatTask mocks base method.

type MockClientMockRecorder added in v2.0.3

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) AnnounceTask added in v2.0.3

func (mr *MockClientMockRecorder) AnnounceTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

AnnounceTask indicates an expected call of AnnounceTask.

func (*MockClientMockRecorder) LeaveTask added in v2.0.3

func (mr *MockClientMockRecorder) LeaveTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

LeaveTask indicates an expected call of LeaveTask.

func (*MockClientMockRecorder) RegisterPeerTask added in v2.0.3

func (mr *MockClientMockRecorder) RegisterPeerTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

RegisterPeerTask indicates an expected call of RegisterPeerTask.

func (*MockClientMockRecorder) ReportPeerResult added in v2.0.3

func (mr *MockClientMockRecorder) ReportPeerResult(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ReportPeerResult indicates an expected call of ReportPeerResult.

func (*MockClientMockRecorder) ReportPieceResult added in v2.0.3

func (mr *MockClientMockRecorder) ReportPieceResult(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ReportPieceResult indicates an expected call of ReportPieceResult.

func (*MockClientMockRecorder) StatTask added in v2.0.3

func (mr *MockClientMockRecorder) StatTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

StatTask indicates an expected call of StatTask.

Jump to

Keyboard shortcuts

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