mock_server_grpc

package
v2.0.4-beta.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_server_grpc is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDaemonClient

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

MockDaemonClient is a mock of DaemonClient interface.

func NewMockDaemonClient

func NewMockDaemonClient(ctrl *gomock.Controller) *MockDaemonClient

NewMockDaemonClient creates a new mock instance.

func (*MockDaemonClient) CheckHealth

func (m *MockDaemonClient) CheckHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)

CheckHealth mocks base method.

func (*MockDaemonClient) DeleteTask added in v2.0.3

DeleteTask mocks base method.

func (*MockDaemonClient) Download

Download mocks base method.

func (*MockDaemonClient) EXPECT

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

func (*MockDaemonClient) ExportTask added in v2.0.3

ExportTask mocks base method.

func (*MockDaemonClient) GetPieceTasks

func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, in *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockDaemonClient) ImportTask added in v2.0.3

ImportTask mocks base method.

func (*MockDaemonClient) StatTask added in v2.0.3

StatTask mocks base method.

func (*MockDaemonClient) SyncPieceTasks

SyncPieceTasks mocks base method.

type MockDaemonClientMockRecorder

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

MockDaemonClientMockRecorder is the mock recorder for MockDaemonClient.

func (*MockDaemonClientMockRecorder) CheckHealth

func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, in interface{}, opts ...interface{}) *gomock.Call

CheckHealth indicates an expected call of CheckHealth.

func (*MockDaemonClientMockRecorder) DeleteTask added in v2.0.3

func (mr *MockDaemonClientMockRecorder) DeleteTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockDaemonClientMockRecorder) Download

func (mr *MockDaemonClientMockRecorder) Download(ctx, in interface{}, opts ...interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockDaemonClientMockRecorder) ExportTask added in v2.0.3

func (mr *MockDaemonClientMockRecorder) ExportTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

ExportTask indicates an expected call of ExportTask.

func (*MockDaemonClientMockRecorder) GetPieceTasks

func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockDaemonClientMockRecorder) ImportTask added in v2.0.3

func (mr *MockDaemonClientMockRecorder) ImportTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

ImportTask indicates an expected call of ImportTask.

func (*MockDaemonClientMockRecorder) StatTask added in v2.0.3

func (mr *MockDaemonClientMockRecorder) StatTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

StatTask indicates an expected call of StatTask.

func (*MockDaemonClientMockRecorder) SyncPieceTasks

func (mr *MockDaemonClientMockRecorder) SyncPieceTasks(ctx interface{}, opts ...interface{}) *gomock.Call

SyncPieceTasks indicates an expected call of SyncPieceTasks.

type MockDaemonServer

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

MockDaemonServer is a mock of DaemonServer interface.

func NewMockDaemonServer

func NewMockDaemonServer(ctrl *gomock.Controller) *MockDaemonServer

NewMockDaemonServer creates a new mock instance.

func (*MockDaemonServer) CheckHealth

func (m *MockDaemonServer) CheckHealth(arg0 context.Context, arg1 *emptypb.Empty) (*emptypb.Empty, error)

CheckHealth mocks base method.

func (*MockDaemonServer) DeleteTask added in v2.0.3

DeleteTask mocks base method.

func (*MockDaemonServer) Download

Download mocks base method.

func (*MockDaemonServer) EXPECT

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

func (*MockDaemonServer) ExportTask added in v2.0.3

ExportTask mocks base method.

func (*MockDaemonServer) GetPieceTasks

func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *base.PieceTaskRequest) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockDaemonServer) ImportTask added in v2.0.3

ImportTask mocks base method.

func (*MockDaemonServer) StatTask added in v2.0.3

StatTask mocks base method.

func (*MockDaemonServer) SyncPieceTasks

SyncPieceTasks mocks base method.

type MockDaemonServerMockRecorder

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

MockDaemonServerMockRecorder is the mock recorder for MockDaemonServer.

func (*MockDaemonServerMockRecorder) CheckHealth

func (mr *MockDaemonServerMockRecorder) CheckHealth(arg0, arg1 interface{}) *gomock.Call

CheckHealth indicates an expected call of CheckHealth.

func (*MockDaemonServerMockRecorder) DeleteTask added in v2.0.3

func (mr *MockDaemonServerMockRecorder) DeleteTask(arg0, arg1 interface{}) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockDaemonServerMockRecorder) Download

func (mr *MockDaemonServerMockRecorder) Download(arg0, arg1 interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockDaemonServerMockRecorder) ExportTask added in v2.0.3

func (mr *MockDaemonServerMockRecorder) ExportTask(arg0, arg1 interface{}) *gomock.Call

ExportTask indicates an expected call of ExportTask.

func (*MockDaemonServerMockRecorder) GetPieceTasks

func (mr *MockDaemonServerMockRecorder) GetPieceTasks(arg0, arg1 interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockDaemonServerMockRecorder) ImportTask added in v2.0.3

func (mr *MockDaemonServerMockRecorder) ImportTask(arg0, arg1 interface{}) *gomock.Call

ImportTask indicates an expected call of ImportTask.

func (*MockDaemonServerMockRecorder) StatTask added in v2.0.3

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

StatTask indicates an expected call of StatTask.

func (*MockDaemonServerMockRecorder) SyncPieceTasks

func (mr *MockDaemonServerMockRecorder) SyncPieceTasks(arg0 interface{}) *gomock.Call

SyncPieceTasks indicates an expected call of SyncPieceTasks.

type MockDaemon_DownloadClient

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

MockDaemon_DownloadClient is a mock of Daemon_DownloadClient interface.

func NewMockDaemon_DownloadClient

func NewMockDaemon_DownloadClient(ctrl *gomock.Controller) *MockDaemon_DownloadClient

NewMockDaemon_DownloadClient creates a new mock instance.

func (*MockDaemon_DownloadClient) CloseSend

func (m *MockDaemon_DownloadClient) CloseSend() error

CloseSend mocks base method.

func (*MockDaemon_DownloadClient) Context

Context mocks base method.

func (*MockDaemon_DownloadClient) EXPECT

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

func (*MockDaemon_DownloadClient) Header

func (m *MockDaemon_DownloadClient) Header() (metadata.MD, error)

Header mocks base method.

func (*MockDaemon_DownloadClient) Recv

Recv mocks base method.

func (*MockDaemon_DownloadClient) RecvMsg

func (m_2 *MockDaemon_DownloadClient) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockDaemon_DownloadClient) SendMsg

func (m_2 *MockDaemon_DownloadClient) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockDaemon_DownloadClient) Trailer

func (m *MockDaemon_DownloadClient) Trailer() metadata.MD

Trailer mocks base method.

type MockDaemon_DownloadClientMockRecorder

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

MockDaemon_DownloadClientMockRecorder is the mock recorder for MockDaemon_DownloadClient.

func (*MockDaemon_DownloadClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockDaemon_DownloadClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDaemon_DownloadClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockDaemon_DownloadClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockDaemon_DownloadClientMockRecorder) RecvMsg

func (mr *MockDaemon_DownloadClientMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockDaemon_DownloadClientMockRecorder) SendMsg

func (mr *MockDaemon_DownloadClientMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockDaemon_DownloadClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockDaemon_DownloadServer

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

MockDaemon_DownloadServer is a mock of Daemon_DownloadServer interface.

func NewMockDaemon_DownloadServer

func NewMockDaemon_DownloadServer(ctrl *gomock.Controller) *MockDaemon_DownloadServer

NewMockDaemon_DownloadServer creates a new mock instance.

func (*MockDaemon_DownloadServer) Context

Context mocks base method.

func (*MockDaemon_DownloadServer) EXPECT

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

func (*MockDaemon_DownloadServer) RecvMsg

func (m_2 *MockDaemon_DownloadServer) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockDaemon_DownloadServer) Send

Send mocks base method.

func (*MockDaemon_DownloadServer) SendHeader

func (m *MockDaemon_DownloadServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockDaemon_DownloadServer) SendMsg

func (m_2 *MockDaemon_DownloadServer) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockDaemon_DownloadServer) SetHeader

func (m *MockDaemon_DownloadServer) SetHeader(arg0 metadata.MD) error

SetHeader mocks base method.

func (*MockDaemon_DownloadServer) SetTrailer

func (m *MockDaemon_DownloadServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockDaemon_DownloadServerMockRecorder

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

MockDaemon_DownloadServerMockRecorder is the mock recorder for MockDaemon_DownloadServer.

func (*MockDaemon_DownloadServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDaemon_DownloadServerMockRecorder) RecvMsg

func (mr *MockDaemon_DownloadServerMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockDaemon_DownloadServerMockRecorder) Send

func (mr *MockDaemon_DownloadServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockDaemon_DownloadServerMockRecorder) SendHeader

func (mr *MockDaemon_DownloadServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockDaemon_DownloadServerMockRecorder) SendMsg

func (mr *MockDaemon_DownloadServerMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockDaemon_DownloadServerMockRecorder) SetHeader

func (mr *MockDaemon_DownloadServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockDaemon_DownloadServerMockRecorder) SetTrailer

func (mr *MockDaemon_DownloadServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockDaemon_SyncPieceTasksClient

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

MockDaemon_SyncPieceTasksClient is a mock of Daemon_SyncPieceTasksClient interface.

func NewMockDaemon_SyncPieceTasksClient

func NewMockDaemon_SyncPieceTasksClient(ctrl *gomock.Controller) *MockDaemon_SyncPieceTasksClient

NewMockDaemon_SyncPieceTasksClient creates a new mock instance.

func (*MockDaemon_SyncPieceTasksClient) CloseSend

func (m *MockDaemon_SyncPieceTasksClient) CloseSend() error

CloseSend mocks base method.

func (*MockDaemon_SyncPieceTasksClient) Context

Context mocks base method.

func (*MockDaemon_SyncPieceTasksClient) EXPECT

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

func (*MockDaemon_SyncPieceTasksClient) Header

Header mocks base method.

func (*MockDaemon_SyncPieceTasksClient) Recv

Recv mocks base method.

func (*MockDaemon_SyncPieceTasksClient) RecvMsg

func (m_2 *MockDaemon_SyncPieceTasksClient) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockDaemon_SyncPieceTasksClient) Send

Send mocks base method.

func (*MockDaemon_SyncPieceTasksClient) SendMsg

func (m_2 *MockDaemon_SyncPieceTasksClient) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockDaemon_SyncPieceTasksClient) Trailer

Trailer mocks base method.

type MockDaemon_SyncPieceTasksClientMockRecorder

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

MockDaemon_SyncPieceTasksClientMockRecorder is the mock recorder for MockDaemon_SyncPieceTasksClient.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) RecvMsg

func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) Send

func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) SendMsg

func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockDaemon_SyncPieceTasksClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockDaemon_SyncPieceTasksServer

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

MockDaemon_SyncPieceTasksServer is a mock of Daemon_SyncPieceTasksServer interface.

func NewMockDaemon_SyncPieceTasksServer

func NewMockDaemon_SyncPieceTasksServer(ctrl *gomock.Controller) *MockDaemon_SyncPieceTasksServer

NewMockDaemon_SyncPieceTasksServer creates a new mock instance.

func (*MockDaemon_SyncPieceTasksServer) Context

Context mocks base method.

func (*MockDaemon_SyncPieceTasksServer) EXPECT

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

func (*MockDaemon_SyncPieceTasksServer) Recv

Recv mocks base method.

func (*MockDaemon_SyncPieceTasksServer) RecvMsg

func (m_2 *MockDaemon_SyncPieceTasksServer) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockDaemon_SyncPieceTasksServer) Send

Send mocks base method.

func (*MockDaemon_SyncPieceTasksServer) SendHeader

func (m *MockDaemon_SyncPieceTasksServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockDaemon_SyncPieceTasksServer) SendMsg

func (m_2 *MockDaemon_SyncPieceTasksServer) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockDaemon_SyncPieceTasksServer) SetHeader

func (m *MockDaemon_SyncPieceTasksServer) SetHeader(arg0 metadata.MD) error

SetHeader mocks base method.

func (*MockDaemon_SyncPieceTasksServer) SetTrailer

func (m *MockDaemon_SyncPieceTasksServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockDaemon_SyncPieceTasksServerMockRecorder

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

MockDaemon_SyncPieceTasksServerMockRecorder is the mock recorder for MockDaemon_SyncPieceTasksServer.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) RecvMsg

func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) Send

func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) SendHeader

func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) SendMsg

func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) SetHeader

func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockDaemon_SyncPieceTasksServerMockRecorder) SetTrailer

func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

Jump to

Keyboard shortcuts

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