Documentation ¶
Overview ¶
Package internal is a generated GoMock package.
Index ¶
- type MgoCollection
- type MockMgoCollection
- func (m *MockMgoCollection) EXPECT() *MockMgoCollectionMockRecorder
- func (m *MockMgoCollection) Find(query interface{}) *mgo.Query
- func (m *MockMgoCollection) FindId(id interface{}) *mgo.Query
- func (m *MockMgoCollection) Insert(docs ...interface{}) error
- func (m *MockMgoCollection) Pipe(pipeline interface{}) *mgo.Pipe
- func (m *MockMgoCollection) Remove(selector interface{}) error
- func (m *MockMgoCollection) RemoveAll(selector interface{}) (*mgo.ChangeInfo, error)
- func (m *MockMgoCollection) RemoveId(id interface{}) error
- func (m *MockMgoCollection) Update(selector, update interface{}) error
- func (m *MockMgoCollection) UpdateId(id, update interface{}) error
- func (m *MockMgoCollection) Upsert(selector, update interface{}) (*mgo.ChangeInfo, error)
- type MockMgoCollectionMockRecorder
- func (mr *MockMgoCollectionMockRecorder) Find(query interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) FindId(id interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) Insert(docs ...interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) Pipe(pipeline interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) Remove(selector interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) RemoveAll(selector interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) RemoveId(id interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) Update(selector, update interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) UpdateId(id, update interface{}) *gomock.Call
- func (mr *MockMgoCollectionMockRecorder) Upsert(selector, update interface{}) *gomock.Call
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) }
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 ¶
func (m *MockMgoCollection) EXPECT() *MockMgoCollectionMockRecorder
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