Documentation
¶
Index ¶
- type RepositoryDummy
- func (m *RepositoryDummy) Aggregate(ctx context.Context, collection mongoModel.Collection, pipe mongo.Pipeline) (*mongo.Cursor, error)
- func (m *RepositoryDummy) CollectionIndexes(ctx context.Context, collection mongoModel.Collection) (map[string]*mongoModel.DBIndex, error)
- func (m *RepositoryDummy) Count(ctx context.Context, collection mongoModel.Collection, find interface{}, ...) (int64, error)
- func (m *RepositoryDummy) CreateIndex(ctx context.Context, index *mongoModel.DBIndex) (string, error)
- func (m *RepositoryDummy) CreateTextIndex(ctx context.Context, index *mongoModel.DBTextIndex) (string, error)
- func (m *RepositoryDummy) DeleteMany(ctx context.Context, collection mongoModel.Collection, filter interface{}, ...) (*mongo.DeleteResult, error)
- func (m *RepositoryDummy) DeleteOne(ctx context.Context, collection mongoModel.Collection, filter interface{}, ...) (*mongo.DeleteResult, error)
- func (m *RepositoryDummy) Find(ctx context.Context, collection mongoModel.Collection, ...) error
- func (m *RepositoryDummy) FindOne(ctx context.Context, collection mongoModel.Collection, ...) error
- func (m *RepositoryDummy) FindOneAndUpdate(ctx context.Context, collection mongoModel.Collection, ...) error
- func (m *RepositoryDummy) Insert(ctx context.Context, collection mongoModel.Collection, data interface{}) (string, error)
- func (m *RepositoryDummy) InsertMany(ctx context.Context, collection mongoModel.Collection, data []interface{}) ([]string, error)
- func (m *RepositoryDummy) ReplaceOne(ctx context.Context, collection mongoModel.Collection, ...) error
- func (m *RepositoryDummy) TryCreateIndex(ctx context.Context, index *mongoModel.DBIndex) error
- func (m *RepositoryDummy) UpdateMany(ctx context.Context, collection mongoModel.Collection, filter interface{}, ...) (int64, error)
- func (m *RepositoryDummy) UpdateOne(ctx context.Context, collection mongoModel.Collection, ...) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryDummy ¶
type RepositoryDummy struct{}
func GetRepository ¶
func GetRepository() *RepositoryDummy
func (*RepositoryDummy) Aggregate ¶
func (m *RepositoryDummy) Aggregate(ctx context.Context, collection mongoModel.Collection, pipe mongo.Pipeline) (*mongo.Cursor, error)
func (*RepositoryDummy) CollectionIndexes ¶
func (m *RepositoryDummy) CollectionIndexes(ctx context.Context, collection mongoModel.Collection) (map[string]*mongoModel.DBIndex, error)
func (*RepositoryDummy) Count ¶
func (m *RepositoryDummy) Count(ctx context.Context, collection mongoModel.Collection, find interface{}, opt *options.CountOptions) (int64, error)
func (*RepositoryDummy) CreateIndex ¶
func (m *RepositoryDummy) CreateIndex(ctx context.Context, index *mongoModel.DBIndex) (string, error)
func (*RepositoryDummy) CreateTextIndex ¶
func (m *RepositoryDummy) CreateTextIndex(ctx context.Context, index *mongoModel.DBTextIndex) (string, error)
func (*RepositoryDummy) DeleteMany ¶
func (m *RepositoryDummy) DeleteMany(ctx context.Context, collection mongoModel.Collection, filter interface{}, opt *options.DeleteOptions) (*mongo.DeleteResult, error)
func (*RepositoryDummy) DeleteOne ¶
func (m *RepositoryDummy) DeleteOne(ctx context.Context, collection mongoModel.Collection, filter interface{}, opt *options.DeleteOptions) (*mongo.DeleteResult, error)
func (*RepositoryDummy) Find ¶
func (m *RepositoryDummy) Find(ctx context.Context, collection mongoModel.Collection, results, find interface{}, opt *options.FindOptions) error
func (*RepositoryDummy) FindOne ¶
func (m *RepositoryDummy) FindOne(ctx context.Context, collection mongoModel.Collection, resultModel, findQuery interface{}, findOptions *options.FindOneOptions) error
func (*RepositoryDummy) FindOneAndUpdate ¶
func (m *RepositoryDummy) FindOneAndUpdate(ctx context.Context, collection mongoModel.Collection, resultModel, filter, updateData interface{}, opt *options.FindOneAndUpdateOptions) error
func (*RepositoryDummy) Insert ¶
func (m *RepositoryDummy) Insert(ctx context.Context, collection mongoModel.Collection, data interface{}) (string, error)
func (*RepositoryDummy) InsertMany ¶
func (m *RepositoryDummy) InsertMany(ctx context.Context, collection mongoModel.Collection, data []interface{}) ([]string, error)
func (*RepositoryDummy) ReplaceOne ¶
func (m *RepositoryDummy) ReplaceOne(ctx context.Context, collection mongoModel.Collection, filter, data interface{}) error
func (*RepositoryDummy) TryCreateIndex ¶
func (m *RepositoryDummy) TryCreateIndex(ctx context.Context, index *mongoModel.DBIndex) error
func (*RepositoryDummy) UpdateMany ¶
func (m *RepositoryDummy) UpdateMany( ctx context.Context, collection mongoModel.Collection, filter interface{}, data interface{}, opts ...*options.UpdateOptions, ) (int64, error)
func (*RepositoryDummy) UpdateOne ¶
func (m *RepositoryDummy) UpdateOne(ctx context.Context, collection mongoModel.Collection, filter, data interface{}, opts ...*options.UpdateOptions) (int64, error)
Click to show internal directories.
Click to hide internal directories.