Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockSeederClient
- func (m *MockSeederClient) EXPECT() *MockSeederClientMockRecorder
- func (m *MockSeederClient) GetPieceTasks(ctx context.Context, in *common.PieceTaskRequest, opts ...grpc.CallOption) (*common.PiecePacket, error)
- func (m *MockSeederClient) ObtainSeeds(ctx context.Context, in *cdnsystem.SeedRequest, opts ...grpc.CallOption) (cdnsystem.Seeder_ObtainSeedsClient, error)
- func (m *MockSeederClient) SyncPieceTasks(ctx context.Context, opts ...grpc.CallOption) (cdnsystem.Seeder_SyncPieceTasksClient, error)
- type MockSeederClientMockRecorder
- func (mr *MockSeederClientMockRecorder) GetPieceTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSeederClientMockRecorder) ObtainSeeds(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSeederClientMockRecorder) SyncPieceTasks(ctx interface{}, opts ...interface{}) *gomock.Call
- type MockSeederServer
- func (m *MockSeederServer) EXPECT() *MockSeederServerMockRecorder
- func (m *MockSeederServer) GetPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest) (*common.PiecePacket, error)
- func (m *MockSeederServer) ObtainSeeds(arg0 *cdnsystem.SeedRequest, arg1 cdnsystem.Seeder_ObtainSeedsServer) error
- func (m *MockSeederServer) SyncPieceTasks(arg0 cdnsystem.Seeder_SyncPieceTasksServer) error
- type MockSeederServerMockRecorder
- type MockSeeder_ObtainSeedsClient
- func (m *MockSeeder_ObtainSeedsClient) CloseSend() error
- func (m *MockSeeder_ObtainSeedsClient) Context() context.Context
- func (m *MockSeeder_ObtainSeedsClient) EXPECT() *MockSeeder_ObtainSeedsClientMockRecorder
- func (m *MockSeeder_ObtainSeedsClient) Header() (metadata.MD, error)
- func (m *MockSeeder_ObtainSeedsClient) Recv() (*cdnsystem.PieceSeed, error)
- func (m_2 *MockSeeder_ObtainSeedsClient) RecvMsg(m interface{}) error
- func (m_2 *MockSeeder_ObtainSeedsClient) SendMsg(m interface{}) error
- func (m *MockSeeder_ObtainSeedsClient) Trailer() metadata.MD
- type MockSeeder_ObtainSeedsClientMockRecorder
- func (mr *MockSeeder_ObtainSeedsClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Context() *gomock.Call
- func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Header() *gomock.Call
- func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Recv() *gomock.Call
- func (mr *MockSeeder_ObtainSeedsClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_ObtainSeedsClientMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Trailer() *gomock.Call
- type MockSeeder_ObtainSeedsServer
- func (m *MockSeeder_ObtainSeedsServer) Context() context.Context
- func (m *MockSeeder_ObtainSeedsServer) EXPECT() *MockSeeder_ObtainSeedsServerMockRecorder
- func (m_2 *MockSeeder_ObtainSeedsServer) RecvMsg(m interface{}) error
- func (m *MockSeeder_ObtainSeedsServer) Send(arg0 *cdnsystem.PieceSeed) error
- func (m *MockSeeder_ObtainSeedsServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockSeeder_ObtainSeedsServer) SendMsg(m interface{}) error
- func (m *MockSeeder_ObtainSeedsServer) SetHeader(arg0 metadata.MD) error
- func (m *MockSeeder_ObtainSeedsServer) SetTrailer(arg0 metadata.MD)
- type MockSeeder_ObtainSeedsServerMockRecorder
- func (mr *MockSeeder_ObtainSeedsServerMockRecorder) Context() *gomock.Call
- func (mr *MockSeeder_ObtainSeedsServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_ObtainSeedsServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockSeeder_SyncPieceTasksClient
- func (m *MockSeeder_SyncPieceTasksClient) CloseSend() error
- func (m *MockSeeder_SyncPieceTasksClient) Context() context.Context
- func (m *MockSeeder_SyncPieceTasksClient) EXPECT() *MockSeeder_SyncPieceTasksClientMockRecorder
- func (m *MockSeeder_SyncPieceTasksClient) Header() (metadata.MD, error)
- func (m *MockSeeder_SyncPieceTasksClient) Recv() (*common.PiecePacket, error)
- func (m_2 *MockSeeder_SyncPieceTasksClient) RecvMsg(m interface{}) error
- func (m *MockSeeder_SyncPieceTasksClient) Send(arg0 *common.PieceTaskRequest) error
- func (m_2 *MockSeeder_SyncPieceTasksClient) SendMsg(m interface{}) error
- func (m *MockSeeder_SyncPieceTasksClient) Trailer() metadata.MD
- type MockSeeder_SyncPieceTasksClientMockRecorder
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Context() *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Header() *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Recv() *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Trailer() *gomock.Call
- type MockSeeder_SyncPieceTasksServer
- func (m *MockSeeder_SyncPieceTasksServer) Context() context.Context
- func (m *MockSeeder_SyncPieceTasksServer) EXPECT() *MockSeeder_SyncPieceTasksServerMockRecorder
- func (m *MockSeeder_SyncPieceTasksServer) Recv() (*common.PieceTaskRequest, error)
- func (m_2 *MockSeeder_SyncPieceTasksServer) RecvMsg(m interface{}) error
- func (m *MockSeeder_SyncPieceTasksServer) Send(arg0 *common.PiecePacket) error
- func (m *MockSeeder_SyncPieceTasksServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockSeeder_SyncPieceTasksServer) SendMsg(m interface{}) error
- func (m *MockSeeder_SyncPieceTasksServer) SetHeader(arg0 metadata.MD) error
- func (m *MockSeeder_SyncPieceTasksServer) SetTrailer(arg0 metadata.MD)
- type MockSeeder_SyncPieceTasksServerMockRecorder
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) Context() *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) Recv() *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) RecvMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) SendMsg(m interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockUnsafeSeederServer
- type MockUnsafeSeederServerMockRecorder
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 ¶
func (m *MockSeederClient) EXPECT() *MockSeederClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSeederClient) GetPieceTasks ¶
func (m *MockSeederClient) GetPieceTasks(ctx context.Context, in *common.PieceTaskRequest, opts ...grpc.CallOption) (*common.PiecePacket, error)
GetPieceTasks mocks base method.
func (*MockSeederClient) ObtainSeeds ¶
func (m *MockSeederClient) ObtainSeeds(ctx context.Context, in *cdnsystem.SeedRequest, opts ...grpc.CallOption) (cdnsystem.Seeder_ObtainSeedsClient, error)
ObtainSeeds mocks base method.
func (*MockSeederClient) SyncPieceTasks ¶
func (m *MockSeederClient) SyncPieceTasks(ctx context.Context, opts ...grpc.CallOption) (cdnsystem.Seeder_SyncPieceTasksClient, error)
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 ¶
func (m *MockSeederServer) EXPECT() *MockSeederServerMockRecorder
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 ¶
func (m *MockSeederServer) ObtainSeeds(arg0 *cdnsystem.SeedRequest, arg1 cdnsystem.Seeder_ObtainSeedsServer) error
ObtainSeeds mocks base method.
func (*MockSeederServer) SyncPieceTasks ¶
func (m *MockSeederServer) SyncPieceTasks(arg0 cdnsystem.Seeder_SyncPieceTasksServer) error
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 ¶
func (m *MockSeeder_ObtainSeedsClient) Context() context.Context
Context mocks base method.
func (*MockSeeder_ObtainSeedsClient) EXPECT ¶
func (m *MockSeeder_ObtainSeedsClient) EXPECT() *MockSeeder_ObtainSeedsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSeeder_ObtainSeedsClient) Header ¶
func (m *MockSeeder_ObtainSeedsClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockSeeder_ObtainSeedsClient) Recv ¶
func (m *MockSeeder_ObtainSeedsClient) Recv() (*cdnsystem.PieceSeed, error)
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 ¶
func (m *MockSeeder_ObtainSeedsClient) Trailer() metadata.MD
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 ¶
func (mr *MockSeeder_ObtainSeedsClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockSeeder_ObtainSeedsClientMockRecorder) Context ¶
func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockSeeder_ObtainSeedsClientMockRecorder) Header ¶
func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockSeeder_ObtainSeedsClientMockRecorder) Recv ¶
func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Recv() *gomock.Call
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 ¶
func (mr *MockSeeder_ObtainSeedsClientMockRecorder) Trailer() *gomock.Call
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 ¶
func (m *MockSeeder_ObtainSeedsServer) Context() context.Context
Context mocks base method.
func (*MockSeeder_ObtainSeedsServer) EXPECT ¶
func (m *MockSeeder_ObtainSeedsServer) EXPECT() *MockSeeder_ObtainSeedsServerMockRecorder
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 ¶
func (m *MockSeeder_ObtainSeedsServer) Send(arg0 *cdnsystem.PieceSeed) error
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 ¶
func (mr *MockSeeder_ObtainSeedsServerMockRecorder) Context() *gomock.Call
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 ¶
func (m *MockSeeder_SyncPieceTasksClient) Context() context.Context
Context mocks base method.
func (*MockSeeder_SyncPieceTasksClient) EXPECT ¶
func (m *MockSeeder_SyncPieceTasksClient) EXPECT() *MockSeeder_SyncPieceTasksClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSeeder_SyncPieceTasksClient) Header ¶
func (m *MockSeeder_SyncPieceTasksClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockSeeder_SyncPieceTasksClient) Recv ¶
func (m *MockSeeder_SyncPieceTasksClient) Recv() (*common.PiecePacket, error)
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 ¶
func (m *MockSeeder_SyncPieceTasksClient) Send(arg0 *common.PieceTaskRequest) error
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 ¶
func (m *MockSeeder_SyncPieceTasksClient) Trailer() metadata.MD
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 ¶
func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockSeeder_SyncPieceTasksClientMockRecorder) Context ¶
func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockSeeder_SyncPieceTasksClientMockRecorder) Header ¶
func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockSeeder_SyncPieceTasksClientMockRecorder) Recv ¶
func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Recv() *gomock.Call
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 ¶
func (mr *MockSeeder_SyncPieceTasksClientMockRecorder) Trailer() *gomock.Call
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 ¶
func (m *MockSeeder_SyncPieceTasksServer) Context() context.Context
Context mocks base method.
func (*MockSeeder_SyncPieceTasksServer) EXPECT ¶
func (m *MockSeeder_SyncPieceTasksServer) EXPECT() *MockSeeder_SyncPieceTasksServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSeeder_SyncPieceTasksServer) Recv ¶
func (m *MockSeeder_SyncPieceTasksServer) Recv() (*common.PieceTaskRequest, error)
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 ¶
func (m *MockSeeder_SyncPieceTasksServer) Send(arg0 *common.PiecePacket) error
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 ¶
func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockSeeder_SyncPieceTasksServerMockRecorder) Recv ¶
func (mr *MockSeeder_SyncPieceTasksServerMockRecorder) Recv() *gomock.Call
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
func (m *MockUnsafeSeederServer) EXPECT() *MockUnsafeSeederServerMockRecorder
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.