mock_provider

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mock_provider is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) EXPECT

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

func (*MockInterface) GetAdv

func (m *MockInterface) GetAdv(arg0 context.Context, arg1 cid.Cid) (*schema.Advertisement, error)

GetAdv mocks base method.

func (*MockInterface) GetLatestAdv

func (m *MockInterface) GetLatestAdv(arg0 context.Context) (cid.Cid, *schema.Advertisement, error)

GetLatestAdv mocks base method.

func (*MockInterface) NotifyPut

func (m *MockInterface) NotifyPut(ctx context.Context, provider *peer.AddrInfo, contextID []byte, md metadata.Metadata) (cid.Cid, error)

NotifyPut mocks base method.

func (*MockInterface) NotifyRemove

func (m *MockInterface) NotifyRemove(ctx context.Context, providerID peer.ID, contextID []byte) (cid.Cid, error)

NotifyRemove mocks base method.

func (*MockInterface) Publish

func (m *MockInterface) Publish(arg0 context.Context, arg1 schema.Advertisement) (cid.Cid, error)

Publish mocks base method.

func (*MockInterface) PublishLocal

func (m *MockInterface) PublishLocal(arg0 context.Context, arg1 schema.Advertisement) (cid.Cid, error)

PublishLocal mocks base method.

func (*MockInterface) RegisterMultihashLister

func (m *MockInterface) RegisterMultihashLister(arg0 provider.MultihashLister)

RegisterMultihashLister mocks base method.

func (*MockInterface) Shutdown

func (m *MockInterface) Shutdown() error

Shutdown mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) GetAdv

func (mr *MockInterfaceMockRecorder) GetAdv(arg0, arg1 interface{}) *gomock.Call

GetAdv indicates an expected call of GetAdv.

func (*MockInterfaceMockRecorder) GetLatestAdv

func (mr *MockInterfaceMockRecorder) GetLatestAdv(arg0 interface{}) *gomock.Call

GetLatestAdv indicates an expected call of GetLatestAdv.

func (*MockInterfaceMockRecorder) NotifyPut

func (mr *MockInterfaceMockRecorder) NotifyPut(ctx, provider, contextID, md interface{}) *gomock.Call

NotifyPut indicates an expected call of NotifyPut.

func (*MockInterfaceMockRecorder) NotifyRemove

func (mr *MockInterfaceMockRecorder) NotifyRemove(ctx, providerID, contextID interface{}) *gomock.Call

NotifyRemove indicates an expected call of NotifyRemove.

func (*MockInterfaceMockRecorder) Publish

func (mr *MockInterfaceMockRecorder) Publish(arg0, arg1 interface{}) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockInterfaceMockRecorder) PublishLocal

func (mr *MockInterfaceMockRecorder) PublishLocal(arg0, arg1 interface{}) *gomock.Call

PublishLocal indicates an expected call of PublishLocal.

func (*MockInterfaceMockRecorder) RegisterMultihashLister

func (mr *MockInterfaceMockRecorder) RegisterMultihashLister(arg0 interface{}) *gomock.Call

RegisterMultihashLister indicates an expected call of RegisterMultihashLister.

func (*MockInterfaceMockRecorder) Shutdown

func (mr *MockInterfaceMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown.

type MockMultihashIterator

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

MockMultihashIterator is a mock of MultihashIterator interface.

func NewMockMultihashIterator

func NewMockMultihashIterator(ctrl *gomock.Controller) *MockMultihashIterator

NewMockMultihashIterator creates a new mock instance.

func (*MockMultihashIterator) EXPECT

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

func (*MockMultihashIterator) Next

Next mocks base method.

type MockMultihashIteratorMockRecorder

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

MockMultihashIteratorMockRecorder is the mock recorder for MockMultihashIterator.

func (*MockMultihashIteratorMockRecorder) Next

Next indicates an expected call of Next.

Jump to

Keyboard shortcuts

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