mock_client

package
v2.0.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_client is a generated GoMock package.

Package mock_client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPeerPacketStream

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

MockPeerPacketStream is a mock of PeerPacketStream interface.

func NewMockPeerPacketStream

func NewMockPeerPacketStream(ctrl *gomock.Controller) *MockPeerPacketStream

NewMockPeerPacketStream creates a new mock instance.

func (*MockPeerPacketStream) EXPECT

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

func (*MockPeerPacketStream) Recv

Recv mocks base method.

func (*MockPeerPacketStream) Send

Send mocks base method.

type MockPeerPacketStreamMockRecorder

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

MockPeerPacketStreamMockRecorder is the mock recorder for MockPeerPacketStream.

func (*MockPeerPacketStreamMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockPeerPacketStreamMockRecorder) Send

func (mr *MockPeerPacketStreamMockRecorder) Send(pr interface{}) *gomock.Call

Send indicates an expected call of Send.

type MockSchedulerClient

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

MockSchedulerClient is a mock of SchedulerClient interface.

func NewMockSchedulerClient

func NewMockSchedulerClient(ctrl *gomock.Controller) *MockSchedulerClient

NewMockSchedulerClient creates a new mock instance.

func (*MockSchedulerClient) Close

func (m *MockSchedulerClient) Close() error

Close mocks base method.

func (*MockSchedulerClient) EXPECT

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

func (*MockSchedulerClient) LeaveTask

func (m *MockSchedulerClient) LeaveTask(ctx context.Context, pt *scheduler.PeerTarget, opts ...grpc.CallOption) error

LeaveTask mocks base method.

func (*MockSchedulerClient) RegisterPeerTask

RegisterPeerTask mocks base method.

func (*MockSchedulerClient) ReportPeerResult

func (m *MockSchedulerClient) ReportPeerResult(ctx context.Context, pr *scheduler.PeerResult, opts ...grpc.CallOption) error

ReportPeerResult mocks base method.

func (*MockSchedulerClient) ReportPieceResult

func (m *MockSchedulerClient) ReportPieceResult(ctx context.Context, taskId string, ptr *scheduler.PeerTaskRequest, opts ...grpc.CallOption) (client.PeerPacketStream, error)

ReportPieceResult mocks base method.

type MockSchedulerClientMockRecorder

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

MockSchedulerClientMockRecorder is the mock recorder for MockSchedulerClient.

func (*MockSchedulerClientMockRecorder) Close

Close indicates an expected call of Close.

func (*MockSchedulerClientMockRecorder) LeaveTask

func (mr *MockSchedulerClientMockRecorder) LeaveTask(ctx, pt interface{}, opts ...interface{}) *gomock.Call

LeaveTask indicates an expected call of LeaveTask.

func (*MockSchedulerClientMockRecorder) RegisterPeerTask

func (mr *MockSchedulerClientMockRecorder) RegisterPeerTask(ctx, ptr interface{}, opts ...interface{}) *gomock.Call

RegisterPeerTask indicates an expected call of RegisterPeerTask.

func (*MockSchedulerClientMockRecorder) ReportPeerResult

func (mr *MockSchedulerClientMockRecorder) ReportPeerResult(ctx, pr interface{}, opts ...interface{}) *gomock.Call

ReportPeerResult indicates an expected call of ReportPeerResult.

func (*MockSchedulerClientMockRecorder) ReportPieceResult

func (mr *MockSchedulerClientMockRecorder) ReportPieceResult(ctx, taskId, ptr interface{}, opts ...interface{}) *gomock.Call

ReportPieceResult indicates an expected call of ReportPieceResult.

Jump to

Keyboard shortcuts

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