Documentation ¶
Index ¶
- type Collection
- func (m Collection) DeleteOne(a0 context.Context, a1 interface{}) (int64, error)
- func (m Collection) Find(a0 context.Context, a1 interface{}, a2 ...*options.FindOptions) (mongodb.ICursor, error)
- func (m Collection) FindOne(a0 context.Context, a1 interface{}, a2 ...*options.FindOneOptions) mongodb.ISingleResult
- func (m Collection) InsertOne(a0 context.Context, a1 interface{}) (interface{}, error)
- func (m Collection) UpdateOne(a0 context.Context, a1 interface{}, a2 interface{}) (interface{}, error)
- type Cursor
- type DB
- type SingleResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { mock.Mock DefaultSingleResult mongodb.ISingleResult DefaultCursor mongodb.ICursor }
func (Collection) DeleteOne ¶
func (m Collection) DeleteOne(a0 context.Context, a1 interface{}) (int64, error)
func (Collection) Find ¶
func (m Collection) Find(a0 context.Context, a1 interface{}, a2 ...*options.FindOptions) (mongodb.ICursor, error)
func (Collection) FindOne ¶
func (m Collection) FindOne(a0 context.Context, a1 interface{}, a2 ...*options.FindOneOptions) mongodb.ISingleResult
type DB ¶
func (DB) Collection ¶
func (m DB) Collection(a0 string, a1 ...*options.CollectionOptions) mongodb.ICollection
type SingleResult ¶
type SingleResult struct { Entity interface{} Err error }
func (SingleResult) Decode ¶
func (m SingleResult) Decode(out interface{}) error
Click to show internal directories.
Click to hide internal directories.