Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCdnClient
- func (m *MockCdnClient) Close() error
- func (m *MockCdnClient) EXPECT() *MockCdnClientMockRecorder
- func (m *MockCdnClient) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, req *base.PieceTaskRequest, ...) (*base.PiecePacket, error)
- func (m *MockCdnClient) ObtainSeeds(ctx context.Context, sr *cdnsystem.SeedRequest, opts ...grpc.CallOption) (*client.PieceSeedStream, error)
- func (m *MockCdnClient) SyncPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, ...) (cdnsystem.Seeder_SyncPieceTasksClient, error)
- func (m *MockCdnClient) UpdateState(addrs []dfnet.NetAddr)
- type MockCdnClientMockRecorder
- func (mr *MockCdnClientMockRecorder) Close() *gomock.Call
- func (mr *MockCdnClientMockRecorder) GetPieceTasks(ctx, addr, req interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockCdnClientMockRecorder) ObtainSeeds(ctx, sr interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockCdnClientMockRecorder) SyncPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockCdnClientMockRecorder) UpdateState(addrs interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCdnClient ¶
type MockCdnClient struct {
// contains filtered or unexported fields
}
MockCdnClient is a mock of CdnClient interface.
func NewMockCdnClient ¶
func NewMockCdnClient(ctrl *gomock.Controller) *MockCdnClient
NewMockCdnClient creates a new mock instance.
func (*MockCdnClient) EXPECT ¶
func (m *MockCdnClient) EXPECT() *MockCdnClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCdnClient) GetPieceTasks ¶
func (m *MockCdnClient) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, req *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)
GetPieceTasks mocks base method.
func (*MockCdnClient) ObtainSeeds ¶
func (m *MockCdnClient) ObtainSeeds(ctx context.Context, sr *cdnsystem.SeedRequest, opts ...grpc.CallOption) (*client.PieceSeedStream, error)
ObtainSeeds mocks base method.
func (*MockCdnClient) SyncPieceTasks ¶
func (m *MockCdnClient) SyncPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, opts ...grpc.CallOption) (cdnsystem.Seeder_SyncPieceTasksClient, error)
SyncPieceTasks mocks base method.
func (*MockCdnClient) UpdateState ¶
func (m *MockCdnClient) UpdateState(addrs []dfnet.NetAddr)
UpdateState mocks base method.
type MockCdnClientMockRecorder ¶
type MockCdnClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCdnClientMockRecorder is the mock recorder for MockCdnClient.
func (*MockCdnClientMockRecorder) Close ¶
func (mr *MockCdnClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockCdnClientMockRecorder) GetPieceTasks ¶
func (mr *MockCdnClientMockRecorder) GetPieceTasks(ctx, addr, req interface{}, opts ...interface{}) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
func (*MockCdnClientMockRecorder) ObtainSeeds ¶
func (mr *MockCdnClientMockRecorder) ObtainSeeds(ctx, sr interface{}, opts ...interface{}) *gomock.Call
ObtainSeeds indicates an expected call of ObtainSeeds.
func (*MockCdnClientMockRecorder) SyncPieceTasks ¶
func (mr *MockCdnClientMockRecorder) SyncPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call
SyncPieceTasks indicates an expected call of SyncPieceTasks.
func (*MockCdnClientMockRecorder) UpdateState ¶
func (mr *MockCdnClientMockRecorder) UpdateState(addrs interface{}) *gomock.Call
UpdateState indicates an expected call of UpdateState.