mocks

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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

GetPieceTasks mocks base method.

func (*MockSeederClient) ObtainSeeds

ObtainSeeds mocks base method.

func (*MockSeederClient) SyncPieceTasks

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

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 *common.PieceTaskRequest) (*common.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockSeederServer) ObtainSeeds

ObtainSeeds mocks base method.

func (*MockSeederServer) SyncPieceTasks

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

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

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

MockSeeder_SyncPieceTasksClient is a mock of Seeder_SyncPieceTasksClient interface.

func NewMockSeeder_SyncPieceTasksClient

func NewMockSeeder_SyncPieceTasksClient(ctrl *gomock.Controller) *MockSeeder_SyncPieceTasksClient

NewMockSeeder_SyncPieceTasksClient creates a new mock instance.

func (*MockSeeder_SyncPieceTasksClient) CloseSend

func (m *MockSeeder_SyncPieceTasksClient) CloseSend() error

CloseSend mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Context

Context mocks base method.

func (*MockSeeder_SyncPieceTasksClient) EXPECT

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

func (*MockSeeder_SyncPieceTasksClient) Header

Header mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Recv

Recv mocks base method.

func (*MockSeeder_SyncPieceTasksClient) RecvMsg

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

RecvMsg mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Send

Send mocks base method.

func (*MockSeeder_SyncPieceTasksClient) SendMsg

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

SendMsg mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Trailer

Trailer mocks base method.

type MockSeeder_SyncPieceTasksClientMockRecorder

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

MockSeeder_SyncPieceTasksClientMockRecorder is the mock recorder for MockSeeder_SyncPieceTasksClient.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) RecvMsg

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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Send

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

Send indicates an expected call of Send.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) SendMsg

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

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockSeeder_SyncPieceTasksServer

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

MockSeeder_SyncPieceTasksServer is a mock of Seeder_SyncPieceTasksServer interface.

func NewMockSeeder_SyncPieceTasksServer

func NewMockSeeder_SyncPieceTasksServer(ctrl *gomock.Controller) *MockSeeder_SyncPieceTasksServer

NewMockSeeder_SyncPieceTasksServer creates a new mock instance.

func (*MockSeeder_SyncPieceTasksServer) Context

Context mocks base method.

func (*MockSeeder_SyncPieceTasksServer) EXPECT

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

func (*MockSeeder_SyncPieceTasksServer) Recv

Recv mocks base method.

func (*MockSeeder_SyncPieceTasksServer) RecvMsg

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

RecvMsg mocks base method.

func (*MockSeeder_SyncPieceTasksServer) Send

Send mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SendHeader

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

SendHeader mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SendMsg

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

SendMsg mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SetHeader

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

SetHeader mocks base method.

func (*MockSeeder_SyncPieceTasksServer) SetTrailer

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

SetTrailer mocks base method.

type MockSeeder_SyncPieceTasksServerMockRecorder

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

MockSeeder_SyncPieceTasksServerMockRecorder is the mock recorder for MockSeeder_SyncPieceTasksServer.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) RecvMsg

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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) Send

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

Send indicates an expected call of Send.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SendHeader

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

SendHeader indicates an expected call of SendHeader.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SendMsg

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

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SetHeader

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

SetHeader indicates an expected call of SetHeader.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SetTrailer

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

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeSeederServer added in v1.4.7

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

MockUnsafeSeederServer is a mock of UnsafeSeederServer interface.

func NewMockUnsafeSeederServer added in v1.4.7

func NewMockUnsafeSeederServer(ctrl *gomock.Controller) *MockUnsafeSeederServer

NewMockUnsafeSeederServer creates a new mock instance.

func (*MockUnsafeSeederServer) EXPECT added in v1.4.7

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

type MockUnsafeSeederServerMockRecorder added in v1.4.7

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

MockUnsafeSeederServerMockRecorder is the mock recorder for MockUnsafeSeederServer.

Jump to

Keyboard shortcuts

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