mocks

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 7 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 MockSeederClient

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

MockSeederClient is a mock of SeederClient interface.

func NewMockSeederClient

func NewMockSeederClient(ctrl *gomock.Controller) *MockSeederClient

NewMockSeederClient creates a new mock instance.

func (*MockSeederClient) EXPECT

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

func (*MockSeederClient) GetPieceTasks

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

GetPieceTasks mocks base method.

func (*MockSeederClient) ObtainSeeds

ObtainSeeds mocks base method.

func (*MockSeederClient) SyncPieceTasks added in v2.0.4

SyncPieceTasks mocks base method.

type MockSeederClientMockRecorder

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

MockSeederClientMockRecorder is the mock recorder for MockSeederClient.

func (*MockSeederClientMockRecorder) GetPieceTasks

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

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockSeederClientMockRecorder) ObtainSeeds

func (mr *MockSeederClientMockRecorder) ObtainSeeds(ctx, in interface{}, opts ...interface{}) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

func (*MockSeederClientMockRecorder) SyncPieceTasks added in v2.0.4

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

SyncPieceTasks indicates an expected call of SyncPieceTasks.

type MockSeederServer

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

MockSeederServer is a mock of SeederServer interface.

func NewMockSeederServer

func NewMockSeederServer(ctrl *gomock.Controller) *MockSeederServer

NewMockSeederServer creates a new mock instance.

func (*MockSeederServer) EXPECT

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

func (*MockSeederServer) GetPieceTasks

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

GetPieceTasks mocks base method.

func (*MockSeederServer) ObtainSeeds

ObtainSeeds mocks base method.

func (*MockSeederServer) SyncPieceTasks added in v2.0.4

SyncPieceTasks mocks base method.

type MockSeederServerMockRecorder

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

MockSeederServerMockRecorder is the mock recorder for MockSeederServer.

func (*MockSeederServerMockRecorder) GetPieceTasks

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

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockSeederServerMockRecorder) ObtainSeeds

func (mr *MockSeederServerMockRecorder) ObtainSeeds(arg0, arg1 interface{}) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

func (*MockSeederServerMockRecorder) SyncPieceTasks added in v2.0.4

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

SyncPieceTasks indicates an expected call of SyncPieceTasks.

type MockSeeder_ObtainSeedsClient

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

MockSeeder_ObtainSeedsClient is a mock of Seeder_ObtainSeedsClient interface.

func NewMockSeeder_ObtainSeedsClient

func NewMockSeeder_ObtainSeedsClient(ctrl *gomock.Controller) *MockSeeder_ObtainSeedsClient

NewMockSeeder_ObtainSeedsClient creates a new mock instance.

func (*MockSeeder_ObtainSeedsClient) CloseSend

func (m *MockSeeder_ObtainSeedsClient) CloseSend() error

CloseSend mocks base method.

func (*MockSeeder_ObtainSeedsClient) Context

Context mocks base method.

func (*MockSeeder_ObtainSeedsClient) EXPECT

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

func (*MockSeeder_ObtainSeedsClient) Header

Header mocks base method.

func (*MockSeeder_ObtainSeedsClient) Recv

Recv mocks base method.

func (*MockSeeder_ObtainSeedsClient) RecvMsg

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

RecvMsg mocks base method.

func (*MockSeeder_ObtainSeedsClient) SendMsg

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

SendMsg mocks base method.

func (*MockSeeder_ObtainSeedsClient) Trailer

Trailer mocks base method.

type MockSeeder_ObtainSeedsClientMockRecorder

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

MockSeeder_ObtainSeedsClientMockRecorder is the mock recorder for MockSeeder_ObtainSeedsClient.

func (*MockSeeder_ObtainSeedsClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockSeeder_ObtainSeedsClientMockRecorder) RecvMsg

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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_ObtainSeedsClientMockRecorder) SendMsg

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

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockSeeder_ObtainSeedsServer

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

MockSeeder_ObtainSeedsServer is a mock of Seeder_ObtainSeedsServer interface.

func NewMockSeeder_ObtainSeedsServer

func NewMockSeeder_ObtainSeedsServer(ctrl *gomock.Controller) *MockSeeder_ObtainSeedsServer

NewMockSeeder_ObtainSeedsServer creates a new mock instance.

func (*MockSeeder_ObtainSeedsServer) Context

Context mocks base method.

func (*MockSeeder_ObtainSeedsServer) EXPECT

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

func (*MockSeeder_ObtainSeedsServer) RecvMsg

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

RecvMsg mocks base method.

func (*MockSeeder_ObtainSeedsServer) Send

Send mocks base method.

func (*MockSeeder_ObtainSeedsServer) SendHeader

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

SendHeader mocks base method.

func (*MockSeeder_ObtainSeedsServer) SendMsg

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

SendMsg mocks base method.

func (*MockSeeder_ObtainSeedsServer) SetHeader

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

SetHeader mocks base method.

func (*MockSeeder_ObtainSeedsServer) SetTrailer

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

SetTrailer mocks base method.

type MockSeeder_ObtainSeedsServerMockRecorder

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

MockSeeder_ObtainSeedsServerMockRecorder is the mock recorder for MockSeeder_ObtainSeedsServer.

func (*MockSeeder_ObtainSeedsServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSeeder_ObtainSeedsServerMockRecorder) RecvMsg

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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_ObtainSeedsServerMockRecorder) Send

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

Send indicates an expected call of Send.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SendHeader

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

SendHeader indicates an expected call of SendHeader.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SendMsg

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

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SetHeader

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

SetHeader indicates an expected call of SetHeader.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SetTrailer

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

SetTrailer indicates an expected call of SetTrailer.

type MockSeeder_SyncPieceTasksClient added in v2.0.4

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

MockSeeder_SyncPieceTasksClient is a mock of Seeder_SyncPieceTasksClient interface.

func NewMockSeeder_SyncPieceTasksClient added in v2.0.4

func NewMockSeeder_SyncPieceTasksClient(ctrl *gomock.Controller) *MockSeeder_SyncPieceTasksClient

NewMockSeeder_SyncPieceTasksClient creates a new mock instance.

func (*MockSeeder_SyncPieceTasksClient) CloseSend added in v2.0.4

func (m *MockSeeder_SyncPieceTasksClient) CloseSend() error

CloseSend mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Context added in v2.0.4

Context mocks base method.

func (*MockSeeder_SyncPieceTasksClient) EXPECT added in v2.0.4

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

func (*MockSeeder_SyncPieceTasksClient) Header added in v2.0.4

Header mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Recv added in v2.0.4

Recv mocks base method.

func (*MockSeeder_SyncPieceTasksClient) RecvMsg added in v2.0.4

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

RecvMsg mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Send added in v2.0.4

Send mocks base method.

func (*MockSeeder_SyncPieceTasksClient) SendMsg added in v2.0.4

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

SendMsg mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Trailer added in v2.0.4

Trailer mocks base method.

type MockSeeder_SyncPieceTasksClientMockRecorder added in v2.0.4

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

MockSeeder_SyncPieceTasksClientMockRecorder is the mock recorder for MockSeeder_SyncPieceTasksClient.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) CloseSend added in v2.0.4

CloseSend indicates an expected call of CloseSend.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Context added in v2.0.4

Context indicates an expected call of Context.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Header added in v2.0.4

Header indicates an expected call of Header.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Recv added in v2.0.4

Recv indicates an expected call of Recv.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) RecvMsg added in v2.0.4

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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Send added in v2.0.4

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

Send indicates an expected call of Send.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) SendMsg added in v2.0.4

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

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Trailer added in v2.0.4

Trailer indicates an expected call of Trailer.

type MockSeeder_SyncPieceTasksServer added in v2.0.4

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

MockSeeder_SyncPieceTasksServer is a mock of Seeder_SyncPieceTasksServer interface.

func NewMockSeeder_SyncPieceTasksServer added in v2.0.4

func NewMockSeeder_SyncPieceTasksServer(ctrl *gomock.Controller) *MockSeeder_SyncPieceTasksServer

NewMockSeeder_SyncPieceTasksServer creates a new mock instance.

func (*MockSeeder_SyncPieceTasksServer) Context added in v2.0.4

Context mocks base method.

func (*MockSeeder_SyncPieceTasksServer) EXPECT added in v2.0.4

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

func (*MockSeeder_SyncPieceTasksServer) Recv added in v2.0.4

Recv mocks base method.

func (*MockSeeder_SyncPieceTasksServer) RecvMsg added in v2.0.4

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

RecvMsg mocks base method.

func (*MockSeeder_SyncPieceTasksServer) Send added in v2.0.4

Send mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SendHeader added in v2.0.4

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

SendHeader mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SendMsg added in v2.0.4

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

SendMsg mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SetHeader added in v2.0.4

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

SetHeader mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SetTrailer added in v2.0.4

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

SetTrailer mocks base method.

type MockSeeder_SyncPieceTasksServerMockRecorder added in v2.0.4

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

MockSeeder_SyncPieceTasksServerMockRecorder is the mock recorder for MockSeeder_SyncPieceTasksServer.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) Context added in v2.0.4

Context indicates an expected call of Context.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) Recv added in v2.0.4

Recv indicates an expected call of Recv.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) RecvMsg added in v2.0.4

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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) Send added in v2.0.4

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

Send indicates an expected call of Send.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SendHeader added in v2.0.4

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

SendHeader indicates an expected call of SendHeader.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SendMsg added in v2.0.4

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

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SetHeader added in v2.0.4

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

SetHeader indicates an expected call of SetHeader.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SetTrailer added in v2.0.4

func (mr *MockSeeder_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