Documentation ¶
Overview ¶
Package mock_provider is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetAdv(arg0 context.Context, arg1 cid.Cid) (*schema.Advertisement, error)
- func (m *MockInterface) GetLatestAdv(arg0 context.Context) (cid.Cid, *schema.Advertisement, error)
- func (m *MockInterface) NotifyPut(ctx context.Context, provider *peer.AddrInfo, contextID []byte, ...) (cid.Cid, error)
- func (m *MockInterface) NotifyRemove(ctx context.Context, providerID peer.ID, contextID []byte) (cid.Cid, error)
- func (m *MockInterface) Publish(arg0 context.Context, arg1 schema.Advertisement) (cid.Cid, error)
- func (m *MockInterface) PublishLocal(arg0 context.Context, arg1 schema.Advertisement) (cid.Cid, error)
- func (m *MockInterface) RegisterMultihashLister(arg0 provider.MultihashLister)
- func (m *MockInterface) Shutdown() error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) GetAdv(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetLatestAdv(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) NotifyPut(ctx, provider, contextID, md interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) NotifyRemove(ctx, providerID, contextID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Publish(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PublishLocal(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RegisterMultihashLister(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Shutdown() *gomock.Call
- type MockMultihashIterator
- type MockMultihashIteratorMockRecorder
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 ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
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 ¶
func (m *MockMultihashIterator) EXPECT() *MockMultihashIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMultihashIteratorMockRecorder ¶
type MockMultihashIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockMultihashIteratorMockRecorder is the mock recorder for MockMultihashIterator.
func (*MockMultihashIteratorMockRecorder) Next ¶
func (mr *MockMultihashIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.