mocks

package
v2.0.41 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ../cdnsystem_grpc.pb.go

Generated by this command:

mockgen -destination cdnsystem_mock.go -source ../cdnsystem_grpc.pb.go -package mocks

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 any, opts ...any) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockSeederClientMockRecorder) ObtainSeeds

func (mr *MockSeederClientMockRecorder) ObtainSeeds(ctx, in any, opts ...any) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

func (*MockSeederClientMockRecorder) SyncPieceTasks

func (mr *MockSeederClientMockRecorder) SyncPieceTasks(ctx any, opts ...any) *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 any) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockSeederServerMockRecorder) ObtainSeeds

func (mr *MockSeederServerMockRecorder) ObtainSeeds(arg0, arg1 any) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

func (*MockSeederServerMockRecorder) SyncPieceTasks

func (mr *MockSeederServerMockRecorder) SyncPieceTasks(arg0 any) *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 any) error

RecvMsg mocks base method.

func (*MockSeeder_ObtainSeedsClient) SendMsg

func (m_2 *MockSeeder_ObtainSeedsClient) SendMsg(m any) 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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_ObtainSeedsClientMockRecorder) SendMsg

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 any) 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 any) 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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_ObtainSeedsServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SendHeader

SendHeader indicates an expected call of SendHeader.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SetHeader

SetHeader indicates an expected call of SetHeader.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SetTrailer

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 any) error

RecvMsg mocks base method.

func (*MockSeeder_SyncPieceTasksClient) Send

Send mocks base method.

func (*MockSeeder_SyncPieceTasksClient) SendMsg

func (m_2 *MockSeeder_SyncPieceTasksClient) SendMsg(m any) 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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) Send

Send indicates an expected call of Send.

func (*MockSeeder_SyncPieceTasksClientMockRecorder) SendMsg

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 any) 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 any) 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

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SendHeader

SendHeader indicates an expected call of SendHeader.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SetHeader

SetHeader indicates an expected call of SetHeader.

func (*MockSeeder_SyncPieceTasksServerMockRecorder) SetTrailer

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeSeederServer

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

MockUnsafeSeederServer is a mock of UnsafeSeederServer interface.

func NewMockUnsafeSeederServer

func NewMockUnsafeSeederServer(ctrl *gomock.Controller) *MockUnsafeSeederServer

NewMockUnsafeSeederServer creates a new mock instance.

func (*MockUnsafeSeederServer) EXPECT

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

type MockUnsafeSeederServerMockRecorder

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