Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCDNDynmaicClient
- func (m *MockCDNDynmaicClient) Close() error
- func (m *MockCDNDynmaicClient) EXPECT() *MockCDNDynmaicClientMockRecorder
- func (m *MockCDNDynmaicClient) GetHost(arg0 string) (*supervisor.Host, bool)
- func (m *MockCDNDynmaicClient) GetPieceTasks(arg0 context.Context, arg1 dfnet.NetAddr, arg2 *base.PieceTaskRequest, ...) (*base.PiecePacket, error)
- func (m *MockCDNDynmaicClient) ObtainSeeds(arg0 context.Context, arg1 *cdnsystem.SeedRequest, arg2 ...grpc.CallOption) (*client.PieceSeedStream, error)
- func (m *MockCDNDynmaicClient) OnNotify(arg0 *config.DynconfigData)
- func (m *MockCDNDynmaicClient) UpdateState(arg0 []dfnet.NetAddr)
- type MockCDNDynmaicClientMockRecorder
- func (mr *MockCDNDynmaicClientMockRecorder) Close() *gomock.Call
- func (mr *MockCDNDynmaicClientMockRecorder) GetHost(arg0 interface{}) *gomock.Call
- func (mr *MockCDNDynmaicClientMockRecorder) GetPieceTasks(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockCDNDynmaicClientMockRecorder) ObtainSeeds(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCDNDynmaicClientMockRecorder) OnNotify(arg0 interface{}) *gomock.Call
- func (mr *MockCDNDynmaicClientMockRecorder) UpdateState(arg0 interface{}) *gomock.Call
- type MockGC
- type MockGCMockRecorder
- type MockHostManager
- type MockHostManagerMockRecorder
- type MockPeerManager
- func (m *MockPeerManager) Add(arg0 *supervisor.Peer)
- func (m *MockPeerManager) Delete(arg0 string)
- func (m *MockPeerManager) EXPECT() *MockPeerManagerMockRecorder
- func (m *MockPeerManager) Get(arg0 string) (*supervisor.Peer, bool)
- func (m *MockPeerManager) GetPeers() *sync.Map
- func (m *MockPeerManager) GetPeersByTask(arg0 string) []*supervisor.Peer
- type MockPeerManagerMockRecorder
- func (mr *MockPeerManagerMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) GetPeers() *gomock.Call
- func (mr *MockPeerManagerMockRecorder) GetPeersByTask(arg0 interface{}) *gomock.Call
- type MockTaskManager
- func (m *MockTaskManager) Add(arg0 *supervisor.Task)
- func (m *MockTaskManager) Delete(arg0 string)
- func (m *MockTaskManager) EXPECT() *MockTaskManagerMockRecorder
- func (m *MockTaskManager) Get(arg0 string) (*supervisor.Task, bool)
- func (m *MockTaskManager) GetOrAdd(arg0 *supervisor.Task) (*supervisor.Task, bool)
- type MockTaskManagerMockRecorder
- func (mr *MockTaskManagerMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockTaskManagerMockRecorder) GetOrAdd(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCDNDynmaicClient ¶
type MockCDNDynmaicClient struct {
// contains filtered or unexported fields
}
MockCDNDynmaicClient is a mock of CDNDynmaicClient interface.
func NewMockCDNDynmaicClient ¶
func NewMockCDNDynmaicClient(ctrl *gomock.Controller) *MockCDNDynmaicClient
NewMockCDNDynmaicClient creates a new mock instance.
func (*MockCDNDynmaicClient) Close ¶
func (m *MockCDNDynmaicClient) Close() error
Close mocks base method.
func (*MockCDNDynmaicClient) EXPECT ¶
func (m *MockCDNDynmaicClient) EXPECT() *MockCDNDynmaicClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCDNDynmaicClient) GetHost ¶
func (m *MockCDNDynmaicClient) GetHost(arg0 string) (*supervisor.Host, bool)
GetHost mocks base method.
func (*MockCDNDynmaicClient) GetPieceTasks ¶
func (m *MockCDNDynmaicClient) GetPieceTasks(arg0 context.Context, arg1 dfnet.NetAddr, arg2 *base.PieceTaskRequest, arg3 ...grpc.CallOption) (*base.PiecePacket, error)
GetPieceTasks mocks base method.
func (*MockCDNDynmaicClient) ObtainSeeds ¶
func (m *MockCDNDynmaicClient) ObtainSeeds(arg0 context.Context, arg1 *cdnsystem.SeedRequest, arg2 ...grpc.CallOption) (*client.PieceSeedStream, error)
ObtainSeeds mocks base method.
func (*MockCDNDynmaicClient) OnNotify ¶
func (m *MockCDNDynmaicClient) OnNotify(arg0 *config.DynconfigData)
OnNotify mocks base method.
func (*MockCDNDynmaicClient) UpdateState ¶
func (m *MockCDNDynmaicClient) UpdateState(arg0 []dfnet.NetAddr)
UpdateState mocks base method.
type MockCDNDynmaicClientMockRecorder ¶
type MockCDNDynmaicClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCDNDynmaicClientMockRecorder is the mock recorder for MockCDNDynmaicClient.
func (*MockCDNDynmaicClientMockRecorder) Close ¶
func (mr *MockCDNDynmaicClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockCDNDynmaicClientMockRecorder) GetHost ¶
func (mr *MockCDNDynmaicClientMockRecorder) GetHost(arg0 interface{}) *gomock.Call
GetHost indicates an expected call of GetHost.
func (*MockCDNDynmaicClientMockRecorder) GetPieceTasks ¶
func (mr *MockCDNDynmaicClientMockRecorder) GetPieceTasks(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
func (*MockCDNDynmaicClientMockRecorder) ObtainSeeds ¶
func (mr *MockCDNDynmaicClientMockRecorder) ObtainSeeds(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ObtainSeeds indicates an expected call of ObtainSeeds.
func (*MockCDNDynmaicClientMockRecorder) OnNotify ¶
func (mr *MockCDNDynmaicClientMockRecorder) OnNotify(arg0 interface{}) *gomock.Call
OnNotify indicates an expected call of OnNotify.
func (*MockCDNDynmaicClientMockRecorder) UpdateState ¶
func (mr *MockCDNDynmaicClientMockRecorder) UpdateState(arg0 interface{}) *gomock.Call
UpdateState indicates an expected call of UpdateState.
type MockGC ¶
type MockGC struct {
// contains filtered or unexported fields
}
MockGC is a mock of GC interface.
func NewMockGC ¶
func NewMockGC(ctrl *gomock.Controller) *MockGC
NewMockGC creates a new mock instance.
func (*MockGC) EXPECT ¶
func (m *MockGC) EXPECT() *MockGCMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGCMockRecorder ¶
type MockGCMockRecorder struct {
// contains filtered or unexported fields
}
MockGCMockRecorder is the mock recorder for MockGC.
func (*MockGCMockRecorder) Add ¶
func (mr *MockGCMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockGCMockRecorder) Run ¶
func (mr *MockGCMockRecorder) Run(arg0 interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockGCMockRecorder) RunAll ¶
func (mr *MockGCMockRecorder) RunAll() *gomock.Call
RunAll indicates an expected call of RunAll.
func (*MockGCMockRecorder) Serve ¶
func (mr *MockGCMockRecorder) Serve() *gomock.Call
Serve indicates an expected call of Serve.
func (*MockGCMockRecorder) Stop ¶
func (mr *MockGCMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockHostManager ¶
type MockHostManager struct {
// contains filtered or unexported fields
}
MockHostManager is a mock of HostManager interface.
func NewMockHostManager ¶
func NewMockHostManager(ctrl *gomock.Controller) *MockHostManager
NewMockHostManager creates a new mock instance.
func (*MockHostManager) Add ¶
func (m *MockHostManager) Add(arg0 *supervisor.Host)
Add mocks base method.
func (*MockHostManager) Delete ¶
func (m *MockHostManager) Delete(arg0 string)
Delete mocks base method.
func (*MockHostManager) EXPECT ¶
func (m *MockHostManager) EXPECT() *MockHostManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHostManager) Get ¶
func (m *MockHostManager) Get(arg0 string) (*supervisor.Host, bool)
Get mocks base method.
type MockHostManagerMockRecorder ¶
type MockHostManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockHostManagerMockRecorder is the mock recorder for MockHostManager.
func (*MockHostManagerMockRecorder) Add ¶
func (mr *MockHostManagerMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockHostManagerMockRecorder) Delete ¶
func (mr *MockHostManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockHostManagerMockRecorder) Get ¶
func (mr *MockHostManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockPeerManager ¶
type MockPeerManager struct {
// contains filtered or unexported fields
}
MockPeerManager is a mock of PeerManager interface.
func NewMockPeerManager ¶
func NewMockPeerManager(ctrl *gomock.Controller) *MockPeerManager
NewMockPeerManager creates a new mock instance.
func (*MockPeerManager) Add ¶
func (m *MockPeerManager) Add(arg0 *supervisor.Peer)
Add mocks base method.
func (*MockPeerManager) Delete ¶
func (m *MockPeerManager) Delete(arg0 string)
Delete mocks base method.
func (*MockPeerManager) EXPECT ¶
func (m *MockPeerManager) EXPECT() *MockPeerManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPeerManager) Get ¶
func (m *MockPeerManager) Get(arg0 string) (*supervisor.Peer, bool)
Get mocks base method.
func (*MockPeerManager) GetPeers ¶
func (m *MockPeerManager) GetPeers() *sync.Map
GetPeers mocks base method.
func (*MockPeerManager) GetPeersByTask ¶
func (m *MockPeerManager) GetPeersByTask(arg0 string) []*supervisor.Peer
GetPeersByTask mocks base method.
type MockPeerManagerMockRecorder ¶
type MockPeerManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerManagerMockRecorder is the mock recorder for MockPeerManager.
func (*MockPeerManagerMockRecorder) Add ¶
func (mr *MockPeerManagerMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockPeerManagerMockRecorder) Delete ¶
func (mr *MockPeerManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPeerManagerMockRecorder) Get ¶
func (mr *MockPeerManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockPeerManagerMockRecorder) GetPeers ¶
func (mr *MockPeerManagerMockRecorder) GetPeers() *gomock.Call
GetPeers indicates an expected call of GetPeers.
func (*MockPeerManagerMockRecorder) GetPeersByTask ¶
func (mr *MockPeerManagerMockRecorder) GetPeersByTask(arg0 interface{}) *gomock.Call
GetPeersByTask indicates an expected call of GetPeersByTask.
type MockTaskManager ¶
type MockTaskManager struct {
// contains filtered or unexported fields
}
MockTaskManager is a mock of TaskManager interface.
func NewMockTaskManager ¶
func NewMockTaskManager(ctrl *gomock.Controller) *MockTaskManager
NewMockTaskManager creates a new mock instance.
func (*MockTaskManager) Add ¶
func (m *MockTaskManager) Add(arg0 *supervisor.Task)
Add mocks base method.
func (*MockTaskManager) Delete ¶
func (m *MockTaskManager) Delete(arg0 string)
Delete mocks base method.
func (*MockTaskManager) EXPECT ¶
func (m *MockTaskManager) EXPECT() *MockTaskManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTaskManager) Get ¶
func (m *MockTaskManager) Get(arg0 string) (*supervisor.Task, bool)
Get mocks base method.
func (*MockTaskManager) GetOrAdd ¶
func (m *MockTaskManager) GetOrAdd(arg0 *supervisor.Task) (*supervisor.Task, bool)
GetOrAdd mocks base method.
type MockTaskManagerMockRecorder ¶
type MockTaskManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskManagerMockRecorder is the mock recorder for MockTaskManager.
func (*MockTaskManagerMockRecorder) Add ¶
func (mr *MockTaskManagerMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockTaskManagerMockRecorder) Delete ¶
func (mr *MockTaskManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTaskManagerMockRecorder) Get ¶
func (mr *MockTaskManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockTaskManagerMockRecorder) GetOrAdd ¶
func (mr *MockTaskManagerMockRecorder) GetOrAdd(arg0 interface{}) *gomock.Call
GetOrAdd indicates an expected call of GetOrAdd.