internal

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package internal is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MgoCollection

type MgoCollection interface {
	Find(query interface{}) *mgo.Query
	FindId(id interface{}) *mgo.Query
	Insert(docs ...interface{}) error
	Pipe(pipeline interface{}) *mgo.Pipe
	Remove(selector interface{}) error
	RemoveAll(selector interface{}) (*mgo.ChangeInfo, error)
	RemoveId(id interface{}) error
	Update(selector, update interface{}) error
	UpdateId(id, update interface{}) error
	Upsert(selector, update interface{}) (*mgo.ChangeInfo, error)
}

MgoCollection interface represents a mgo collection.

type MockMgoCollection

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

MockMgoCollection is a mock of MgoCollection interface

func NewMockMgoCollection

func NewMockMgoCollection(ctrl *gomock.Controller) *MockMgoCollection

NewMockMgoCollection creates a new mock instance

func (*MockMgoCollection) EXPECT

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

func (*MockMgoCollection) Find

func (m *MockMgoCollection) Find(query interface{}) *mgo.Query

Find mocks base method

func (*MockMgoCollection) FindId

func (m *MockMgoCollection) FindId(id interface{}) *mgo.Query

FindId mocks base method

func (*MockMgoCollection) Insert

func (m *MockMgoCollection) Insert(docs ...interface{}) error

Insert mocks base method

func (*MockMgoCollection) Pipe

func (m *MockMgoCollection) Pipe(pipeline interface{}) *mgo.Pipe

Pipe mocks base method

func (*MockMgoCollection) Remove

func (m *MockMgoCollection) Remove(selector interface{}) error

Remove mocks base method

func (*MockMgoCollection) RemoveAll

func (m *MockMgoCollection) RemoveAll(selector interface{}) (*mgo.ChangeInfo, error)

RemoveAll mocks base method

func (*MockMgoCollection) RemoveId

func (m *MockMgoCollection) RemoveId(id interface{}) error

RemoveId mocks base method

func (*MockMgoCollection) Update

func (m *MockMgoCollection) Update(selector, update interface{}) error

Update mocks base method

func (*MockMgoCollection) UpdateId

func (m *MockMgoCollection) UpdateId(id, update interface{}) error

UpdateId mocks base method

func (*MockMgoCollection) Upsert

func (m *MockMgoCollection) Upsert(selector, update interface{}) (*mgo.ChangeInfo, error)

Upsert mocks base method

type MockMgoCollectionMockRecorder

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

MockMgoCollectionMockRecorder is the mock recorder for MockMgoCollection

func (*MockMgoCollectionMockRecorder) Find

func (mr *MockMgoCollectionMockRecorder) Find(query interface{}) *gomock.Call

Find indicates an expected call of Find

func (*MockMgoCollectionMockRecorder) FindId

func (mr *MockMgoCollectionMockRecorder) FindId(id interface{}) *gomock.Call

FindId indicates an expected call of FindId

func (*MockMgoCollectionMockRecorder) Insert

func (mr *MockMgoCollectionMockRecorder) Insert(docs ...interface{}) *gomock.Call

Insert indicates an expected call of Insert

func (*MockMgoCollectionMockRecorder) Pipe

func (mr *MockMgoCollectionMockRecorder) Pipe(pipeline interface{}) *gomock.Call

Pipe indicates an expected call of Pipe

func (*MockMgoCollectionMockRecorder) Remove

func (mr *MockMgoCollectionMockRecorder) Remove(selector interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockMgoCollectionMockRecorder) RemoveAll

func (mr *MockMgoCollectionMockRecorder) RemoveAll(selector interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll

func (*MockMgoCollectionMockRecorder) RemoveId

func (mr *MockMgoCollectionMockRecorder) RemoveId(id interface{}) *gomock.Call

RemoveId indicates an expected call of RemoveId

func (*MockMgoCollectionMockRecorder) Update

func (mr *MockMgoCollectionMockRecorder) Update(selector, update interface{}) *gomock.Call

Update indicates an expected call of Update

func (*MockMgoCollectionMockRecorder) UpdateId

func (mr *MockMgoCollectionMockRecorder) UpdateId(id, update interface{}) *gomock.Call

UpdateId indicates an expected call of UpdateId

func (*MockMgoCollectionMockRecorder) Upsert

func (mr *MockMgoCollectionMockRecorder) Upsert(selector, update interface{}) *gomock.Call

Upsert indicates an expected call of Upsert

Jump to

Keyboard shortcuts

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