mocks

package
v2.0.2-rc.15 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 8 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 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) Close

func (m *MockCdnClient) Close() error

Close mocks base method.

func (*MockCdnClient) EXPECT

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

ObtainSeeds 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) UpdateState

func (mr *MockCdnClientMockRecorder) UpdateState(addrs interface{}) *gomock.Call

UpdateState indicates an expected call of UpdateState.

Jump to

Keyboard shortcuts

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