Documentation ¶
Overview ¶
Package objectmanagermock is a generated GoMock package.
Index ¶
- type MockObjectManager
- func (m *MockObjectManager) EXPECT() *MockObjectManagerMockRecorder
- func (m *MockObjectManager) Put(ctx context.Context, o *object.Object) (*object.Object, error)
- func (m *MockObjectManager) Request(ctx context.Context, hash object.Hash, peer *peer.ConnectionInfo) (*object.Object, error)
- func (m *MockObjectManager) RequestStream(ctx context.Context, rootHash object.Hash, recipients ...*peer.ConnectionInfo) (object.ReadCloser, error)
- func (m *MockObjectManager) Subscribe(lookupOptions ...objectmanager.LookupOption) objectmanager.ObjectSubscription
- type MockObjectManagerMockRecorder
- func (mr *MockObjectManagerMockRecorder) Put(ctx, o interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) Request(ctx, hash, peer interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) RequestStream(ctx, rootHash interface{}, recipients ...interface{}) *gomock.Call
- func (mr *MockObjectManagerMockRecorder) Subscribe(lookupOptions ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockObjectManager ¶
type MockObjectManager struct {
// contains filtered or unexported fields
}
MockObjectManager is a mock of ObjectManager interface
func NewMockObjectManager ¶
func NewMockObjectManager(ctrl *gomock.Controller) *MockObjectManager
NewMockObjectManager creates a new mock instance
func (*MockObjectManager) EXPECT ¶
func (m *MockObjectManager) EXPECT() *MockObjectManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockObjectManager) Request ¶
func (m *MockObjectManager) Request(ctx context.Context, hash object.Hash, peer *peer.ConnectionInfo) (*object.Object, error)
Request mocks base method
func (*MockObjectManager) RequestStream ¶
func (m *MockObjectManager) RequestStream(ctx context.Context, rootHash object.Hash, recipients ...*peer.ConnectionInfo) (object.ReadCloser, error)
RequestStream mocks base method
func (*MockObjectManager) Subscribe ¶
func (m *MockObjectManager) Subscribe(lookupOptions ...objectmanager.LookupOption) objectmanager.ObjectSubscription
Subscribe mocks base method
type MockObjectManagerMockRecorder ¶
type MockObjectManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectManagerMockRecorder is the mock recorder for MockObjectManager
func (*MockObjectManagerMockRecorder) Put ¶
func (mr *MockObjectManagerMockRecorder) Put(ctx, o interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockObjectManagerMockRecorder) Request ¶
func (mr *MockObjectManagerMockRecorder) Request(ctx, hash, peer interface{}) *gomock.Call
Request indicates an expected call of Request
func (*MockObjectManagerMockRecorder) RequestStream ¶
func (mr *MockObjectManagerMockRecorder) RequestStream(ctx, rootHash interface{}, recipients ...interface{}) *gomock.Call
RequestStream indicates an expected call of RequestStream
func (*MockObjectManagerMockRecorder) Subscribe ¶
func (mr *MockObjectManagerMockRecorder) Subscribe(lookupOptions ...interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe
Click to show internal directories.
Click to hide internal directories.