Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: aggregator.go
Generated by this command:
mockgen -source=aggregator.go -destination=../mock/aggregator.mock.go -package=mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockIAggregator
- type MockIAggregatorMockRecorder
- type MockICreator
- func (m *MockICreator[T]) EXPECT() *MockICreatorMockRecorder[T]
- func (m *MockICreator[T]) GetCollection() *mongo.Collection
- func (m *MockICreator[T]) InsertMany(ctx context.Context, docs []*T, ...) (*mongo.InsertManyResult, error)
- func (m *MockICreator[T]) InsertOne(ctx context.Context, docs *T, opts ...options.Lister[options.InsertOneOptions]) (*mongo.InsertOneResult, error)
- func (m *MockICreator[T]) ModelHook(modelHook any) creator.ICreator[T]
- func (m *MockICreator[T]) RegisterAfterHooks(hooks ...creator.HookFn[T]) creator.ICreator[T]
- func (m *MockICreator[T]) RegisterBeforeHooks(hooks ...creator.HookFn[T]) creator.ICreator[T]
- type MockICreatorMockRecorder
- func (mr *MockICreatorMockRecorder[T]) GetCollection() *gomock.Call
- func (mr *MockICreatorMockRecorder[T]) InsertMany(ctx, docs any, opts ...any) *gomock.Call
- func (mr *MockICreatorMockRecorder[T]) InsertOne(ctx, docs any, opts ...any) *gomock.Call
- func (mr *MockICreatorMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
- func (mr *MockICreatorMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
- func (mr *MockICreatorMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
- type MockIDeleter
- func (m *MockIDeleter[T]) DeleteMany(ctx context.Context, opts ...options.Lister[options.DeleteManyOptions]) (*mongo.DeleteResult, error)
- func (m *MockIDeleter[T]) DeleteOne(ctx context.Context, opts ...options.Lister[options.DeleteOneOptions]) (*mongo.DeleteResult, error)
- func (m *MockIDeleter[T]) EXPECT() *MockIDeleterMockRecorder[T]
- func (m *MockIDeleter[T]) Filter(filter any) deleter.IDeleter[T]
- func (m *MockIDeleter[T]) GetCollection() *mongo.Collection
- func (m *MockIDeleter[T]) ModelHook(modelHook any) deleter.IDeleter[T]
- func (m *MockIDeleter[T]) PostActionHandler(ctx context.Context, globalOpContext *operation.OpContext, ...) error
- func (m *MockIDeleter[T]) PreActionHandler(ctx context.Context, globalOpContext *operation.OpContext, ...) error
- func (m *MockIDeleter[T]) RegisterAfterHooks(hooks ...deleter.AfterHookFn) deleter.IDeleter[T]
- func (m *MockIDeleter[T]) RegisterBeforeHooks(hooks ...deleter.BeforeHookFn) deleter.IDeleter[T]
- type MockIDeleterMockRecorder
- func (mr *MockIDeleterMockRecorder[T]) DeleteMany(ctx any, opts ...any) *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) DeleteOne(ctx any, opts ...any) *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) Filter(filter any) *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) GetCollection() *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) PostActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) PreActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
- func (mr *MockIDeleterMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
- type MockIFinder
- func (m *MockIFinder[T]) Count(ctx context.Context, opts ...options.Lister[options.CountOptions]) (int64, error)
- func (m *MockIFinder[T]) Distinct(ctx context.Context, fieldName string, ...) *mongo.DistinctResult
- func (m *MockIFinder[T]) DistinctWithParse(ctx context.Context, fieldName string, result any, ...) error
- func (m *MockIFinder[T]) EXPECT() *MockIFinderMockRecorder[T]
- func (m *MockIFinder[T]) Filter(filter any) finder.IFinder[T]
- func (m *MockIFinder[T]) Find(ctx context.Context, opts ...options.Lister[options.FindOptions]) ([]*T, error)
- func (m *MockIFinder[T]) FindOne(ctx context.Context, opts ...options.Lister[options.FindOneOptions]) (*T, error)
- func (m *MockIFinder[T]) FindOneAndUpdate(ctx context.Context, opts ...options.Lister[options.FindOneAndUpdateOptions]) (*T, error)
- func (m *MockIFinder[T]) GetCollection() *mongo.Collection
- func (m *MockIFinder[T]) Limit(limit int64) finder.IFinder[T]
- func (m *MockIFinder[T]) ModelHook(modelHook any) finder.IFinder[T]
- func (m *MockIFinder[T]) PostActionHandler(ctx context.Context, globalOpContext *operation.OpContext, ...) error
- func (m *MockIFinder[T]) PreActionHandler(ctx context.Context, globalOpContext *operation.OpContext, ...) error
- func (m *MockIFinder[T]) RegisterAfterHooks(hooks ...finder.AfterHookFn[T]) finder.IFinder[T]
- func (m *MockIFinder[T]) RegisterBeforeHooks(hooks ...finder.BeforeHookFn[T]) finder.IFinder[T]
- func (m *MockIFinder[T]) Skip(skip int64) finder.IFinder[T]
- func (m *MockIFinder[T]) Sort(sort any) finder.IFinder[T]
- func (m *MockIFinder[T]) Updates(update any) finder.IFinder[T]
- type MockIFinderMockRecorder
- func (mr *MockIFinderMockRecorder[T]) Count(ctx any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Distinct(ctx, fieldName any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) DistinctWithParse(ctx, fieldName, result any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Filter(filter any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Find(ctx any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) FindOne(ctx any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) FindOneAndUpdate(ctx any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) GetCollection() *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Limit(limit any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) PostActionHandler(ctx, globalOpContext, opContext any, opTypes ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) PreActionHandler(ctx, globalOpContext, opContext any, opTypes ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Skip(skip any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Sort(sort any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Updates(update any) *gomock.Call
- type MockIUpdater
- func (m *MockIUpdater[T]) EXPECT() *MockIUpdaterMockRecorder[T]
- func (m *MockIUpdater[T]) Filter(filter any) updater.IUpdater[T]
- func (m *MockIUpdater[T]) GetCollection() *mongo.Collection
- func (m *MockIUpdater[T]) ModelHook(modelHook any) updater.IUpdater[T]
- func (m *MockIUpdater[T]) PostActionHandler(ctx context.Context, globalOpContext *operation.OpContext, ...) error
- func (m *MockIUpdater[T]) PreActionHandler(ctx context.Context, globalOpContext *operation.OpContext, ...) error
- func (m *MockIUpdater[T]) RegisterAfterHooks(hooks ...updater.AfterHookFn) updater.IUpdater[T]
- func (m *MockIUpdater[T]) RegisterBeforeHooks(hooks ...updater.BeforeHookFn) updater.IUpdater[T]
- func (m *MockIUpdater[T]) Replacement(replacement any) updater.IUpdater[T]
- func (m *MockIUpdater[T]) UpdateMany(ctx context.Context, opts ...options.Lister[options.UpdateManyOptions]) (*mongo.UpdateResult, error)
- func (m *MockIUpdater[T]) UpdateOne(ctx context.Context, opts ...options.Lister[options.UpdateOneOptions]) (*mongo.UpdateResult, error)
- func (m *MockIUpdater[T]) Updates(updates any) updater.IUpdater[T]
- func (m *MockIUpdater[T]) Upsert(ctx context.Context, opts ...options.Lister[options.UpdateOneOptions]) (*mongo.UpdateResult, error)
- type MockIUpdaterMockRecorder
- func (mr *MockIUpdaterMockRecorder[T]) Filter(filter any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) GetCollection() *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) PostActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) PreActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) Replacement(replacement any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) UpdateMany(ctx any, opts ...any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) UpdateOne(ctx any, opts ...any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) Updates(updates any) *gomock.Call
- func (mr *MockIUpdaterMockRecorder[T]) Upsert(ctx any, opts ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIAggregator ¶
type MockIAggregator[T any] struct { // contains filtered or unexported fields }
MockIAggregator is a mock of IAggregator interface.
func NewMockIAggregator ¶
func NewMockIAggregator[T any](ctrl *gomock.Controller) *MockIAggregator[T]
NewMockIAggregator creates a new mock instance.
func (*MockIAggregator[T]) Aggregate ¶
func (m *MockIAggregator[T]) Aggregate(ctx context.Context, opts ...options.Lister[options.AggregateOptions]) ([]*T, error)
Aggregate mocks base method.
func (*MockIAggregator[T]) AggregateWithParse ¶
func (m *MockIAggregator[T]) AggregateWithParse(ctx context.Context, result any, opts ...options.Lister[options.AggregateOptions]) error
AggregateWithParse mocks base method.
func (*MockIAggregator[T]) EXPECT ¶
func (m *MockIAggregator[T]) EXPECT() *MockIAggregatorMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
type MockIAggregatorMockRecorder ¶
type MockIAggregatorMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIAggregatorMockRecorder is the mock recorder for MockIAggregator.
func (*MockIAggregatorMockRecorder[T]) Aggregate ¶
func (mr *MockIAggregatorMockRecorder[T]) Aggregate(ctx any, opts ...any) *gomock.Call
Aggregate indicates an expected call of Aggregate.
func (*MockIAggregatorMockRecorder[T]) AggregateWithParse ¶
func (mr *MockIAggregatorMockRecorder[T]) AggregateWithParse(ctx, result any, opts ...any) *gomock.Call
AggregateWithParse indicates an expected call of AggregateWithParse.
type MockICreator ¶
type MockICreator[T any] struct { // contains filtered or unexported fields }
MockICreator is a mock of ICreator interface.
func NewMockICreator ¶
func NewMockICreator[T any](ctrl *gomock.Controller) *MockICreator[T]
NewMockICreator creates a new mock instance.
func (*MockICreator[T]) EXPECT ¶
func (m *MockICreator[T]) EXPECT() *MockICreatorMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockICreator[T]) GetCollection ¶ added in v2.4.0
func (m *MockICreator[T]) GetCollection() *mongo.Collection
GetCollection mocks base method.
func (*MockICreator[T]) InsertMany ¶
func (m *MockICreator[T]) InsertMany(ctx context.Context, docs []*T, opts ...options.Lister[options.InsertManyOptions]) (*mongo.InsertManyResult, error)
InsertMany mocks base method.
func (*MockICreator[T]) InsertOne ¶
func (m *MockICreator[T]) InsertOne(ctx context.Context, docs *T, opts ...options.Lister[options.InsertOneOptions]) (*mongo.InsertOneResult, error)
InsertOne mocks base method.
func (*MockICreator[T]) ModelHook ¶ added in v2.4.0
func (m *MockICreator[T]) ModelHook(modelHook any) creator.ICreator[T]
ModelHook mocks base method.
func (*MockICreator[T]) RegisterAfterHooks ¶ added in v2.4.0
func (m *MockICreator[T]) RegisterAfterHooks(hooks ...creator.HookFn[T]) creator.ICreator[T]
RegisterAfterHooks mocks base method.
func (*MockICreator[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (m *MockICreator[T]) RegisterBeforeHooks(hooks ...creator.HookFn[T]) creator.ICreator[T]
RegisterBeforeHooks mocks base method.
type MockICreatorMockRecorder ¶
type MockICreatorMockRecorder[T any] struct { // contains filtered or unexported fields }
MockICreatorMockRecorder is the mock recorder for MockICreator.
func (*MockICreatorMockRecorder[T]) GetCollection ¶ added in v2.4.0
func (mr *MockICreatorMockRecorder[T]) GetCollection() *gomock.Call
GetCollection indicates an expected call of GetCollection.
func (*MockICreatorMockRecorder[T]) InsertMany ¶
func (mr *MockICreatorMockRecorder[T]) InsertMany(ctx, docs any, opts ...any) *gomock.Call
InsertMany indicates an expected call of InsertMany.
func (*MockICreatorMockRecorder[T]) InsertOne ¶
func (mr *MockICreatorMockRecorder[T]) InsertOne(ctx, docs any, opts ...any) *gomock.Call
InsertOne indicates an expected call of InsertOne.
func (*MockICreatorMockRecorder[T]) ModelHook ¶ added in v2.4.0
func (mr *MockICreatorMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
ModelHook indicates an expected call of ModelHook.
func (*MockICreatorMockRecorder[T]) RegisterAfterHooks ¶ added in v2.4.0
func (mr *MockICreatorMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
RegisterAfterHooks indicates an expected call of RegisterAfterHooks.
func (*MockICreatorMockRecorder[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (mr *MockICreatorMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
RegisterBeforeHooks indicates an expected call of RegisterBeforeHooks.
type MockIDeleter ¶
type MockIDeleter[T any] struct { // contains filtered or unexported fields }
MockIDeleter is a mock of IDeleter interface.
func NewMockIDeleter ¶
func NewMockIDeleter[T any](ctrl *gomock.Controller) *MockIDeleter[T]
NewMockIDeleter creates a new mock instance.
func (*MockIDeleter[T]) DeleteMany ¶
func (m *MockIDeleter[T]) DeleteMany(ctx context.Context, opts ...options.Lister[options.DeleteManyOptions]) (*mongo.DeleteResult, error)
DeleteMany mocks base method.
func (*MockIDeleter[T]) DeleteOne ¶
func (m *MockIDeleter[T]) DeleteOne(ctx context.Context, opts ...options.Lister[options.DeleteOneOptions]) (*mongo.DeleteResult, error)
DeleteOne mocks base method.
func (*MockIDeleter[T]) EXPECT ¶
func (m *MockIDeleter[T]) EXPECT() *MockIDeleterMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIDeleter[T]) Filter ¶ added in v2.4.0
func (m *MockIDeleter[T]) Filter(filter any) deleter.IDeleter[T]
Filter mocks base method.
func (*MockIDeleter[T]) GetCollection ¶ added in v2.4.0
func (m *MockIDeleter[T]) GetCollection() *mongo.Collection
GetCollection mocks base method.
func (*MockIDeleter[T]) ModelHook ¶ added in v2.4.0
func (m *MockIDeleter[T]) ModelHook(modelHook any) deleter.IDeleter[T]
ModelHook mocks base method.
func (*MockIDeleter[T]) PostActionHandler ¶ added in v2.4.0
func (m *MockIDeleter[T]) PostActionHandler(ctx context.Context, globalOpContext *operation.OpContext, opContext *deleter.OpContext, opType operation.OpType) error
PostActionHandler mocks base method.
func (*MockIDeleter[T]) PreActionHandler ¶ added in v2.4.0
func (m *MockIDeleter[T]) PreActionHandler(ctx context.Context, globalOpContext *operation.OpContext, opContext *deleter.OpContext, opType operation.OpType) error
PreActionHandler mocks base method.
func (*MockIDeleter[T]) RegisterAfterHooks ¶ added in v2.4.0
func (m *MockIDeleter[T]) RegisterAfterHooks(hooks ...deleter.AfterHookFn) deleter.IDeleter[T]
RegisterAfterHooks mocks base method.
func (*MockIDeleter[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (m *MockIDeleter[T]) RegisterBeforeHooks(hooks ...deleter.BeforeHookFn) deleter.IDeleter[T]
RegisterBeforeHooks mocks base method.
type MockIDeleterMockRecorder ¶
type MockIDeleterMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIDeleterMockRecorder is the mock recorder for MockIDeleter.
func (*MockIDeleterMockRecorder[T]) DeleteMany ¶
func (mr *MockIDeleterMockRecorder[T]) DeleteMany(ctx any, opts ...any) *gomock.Call
DeleteMany indicates an expected call of DeleteMany.
func (*MockIDeleterMockRecorder[T]) DeleteOne ¶
func (mr *MockIDeleterMockRecorder[T]) DeleteOne(ctx any, opts ...any) *gomock.Call
DeleteOne indicates an expected call of DeleteOne.
func (*MockIDeleterMockRecorder[T]) Filter ¶ added in v2.4.0
func (mr *MockIDeleterMockRecorder[T]) Filter(filter any) *gomock.Call
Filter indicates an expected call of Filter.
func (*MockIDeleterMockRecorder[T]) GetCollection ¶ added in v2.4.0
func (mr *MockIDeleterMockRecorder[T]) GetCollection() *gomock.Call
GetCollection indicates an expected call of GetCollection.
func (*MockIDeleterMockRecorder[T]) ModelHook ¶ added in v2.4.0
func (mr *MockIDeleterMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
ModelHook indicates an expected call of ModelHook.
func (*MockIDeleterMockRecorder[T]) PostActionHandler ¶ added in v2.4.0
func (mr *MockIDeleterMockRecorder[T]) PostActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
PostActionHandler indicates an expected call of PostActionHandler.
func (*MockIDeleterMockRecorder[T]) PreActionHandler ¶ added in v2.4.0
func (mr *MockIDeleterMockRecorder[T]) PreActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
PreActionHandler indicates an expected call of PreActionHandler.
func (*MockIDeleterMockRecorder[T]) RegisterAfterHooks ¶ added in v2.4.0
func (mr *MockIDeleterMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
RegisterAfterHooks indicates an expected call of RegisterAfterHooks.
func (*MockIDeleterMockRecorder[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (mr *MockIDeleterMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
RegisterBeforeHooks indicates an expected call of RegisterBeforeHooks.
type MockIFinder ¶
type MockIFinder[T any] struct { // contains filtered or unexported fields }
MockIFinder is a mock of IFinder interface.
func NewMockIFinder ¶
func NewMockIFinder[T any](ctrl *gomock.Controller) *MockIFinder[T]
NewMockIFinder creates a new mock instance.
func (*MockIFinder[T]) Count ¶
func (m *MockIFinder[T]) Count(ctx context.Context, opts ...options.Lister[options.CountOptions]) (int64, error)
Count mocks base method.
func (*MockIFinder[T]) Distinct ¶ added in v2.4.0
func (m *MockIFinder[T]) Distinct(ctx context.Context, fieldName string, opts ...options.Lister[options.DistinctOptions]) *mongo.DistinctResult
Distinct mocks base method.
func (*MockIFinder[T]) DistinctWithParse ¶ added in v2.4.0
func (m *MockIFinder[T]) DistinctWithParse(ctx context.Context, fieldName string, result any, opts ...options.Lister[options.DistinctOptions]) error
DistinctWithParse mocks base method.
func (*MockIFinder[T]) EXPECT ¶
func (m *MockIFinder[T]) EXPECT() *MockIFinderMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIFinder[T]) Filter ¶ added in v2.4.0
func (m *MockIFinder[T]) Filter(filter any) finder.IFinder[T]
Filter mocks base method.
func (*MockIFinder[T]) Find ¶
func (m *MockIFinder[T]) Find(ctx context.Context, opts ...options.Lister[options.FindOptions]) ([]*T, error)
Find mocks base method.
func (*MockIFinder[T]) FindOne ¶
func (m *MockIFinder[T]) FindOne(ctx context.Context, opts ...options.Lister[options.FindOneOptions]) (*T, error)
FindOne mocks base method.
func (*MockIFinder[T]) FindOneAndUpdate ¶ added in v2.2.3
func (m *MockIFinder[T]) FindOneAndUpdate(ctx context.Context, opts ...options.Lister[options.FindOneAndUpdateOptions]) (*T, error)
FindOneAndUpdate mocks base method.
func (*MockIFinder[T]) GetCollection ¶ added in v2.4.0
func (m *MockIFinder[T]) GetCollection() *mongo.Collection
GetCollection mocks base method.
func (*MockIFinder[T]) Limit ¶ added in v2.4.0
func (m *MockIFinder[T]) Limit(limit int64) finder.IFinder[T]
Limit mocks base method.
func (*MockIFinder[T]) ModelHook ¶ added in v2.4.0
func (m *MockIFinder[T]) ModelHook(modelHook any) finder.IFinder[T]
ModelHook mocks base method.
func (*MockIFinder[T]) PostActionHandler ¶ added in v2.4.0
func (m *MockIFinder[T]) PostActionHandler(ctx context.Context, globalOpContext *operation.OpContext, opContext *finder.OpContext[T], opTypes ...operation.OpType) error
PostActionHandler mocks base method.
func (*MockIFinder[T]) PreActionHandler ¶ added in v2.4.0
func (m *MockIFinder[T]) PreActionHandler(ctx context.Context, globalOpContext *operation.OpContext, opContext *finder.OpContext[T], opTypes ...operation.OpType) error
PreActionHandler mocks base method.
func (*MockIFinder[T]) RegisterAfterHooks ¶ added in v2.4.0
func (m *MockIFinder[T]) RegisterAfterHooks(hooks ...finder.AfterHookFn[T]) finder.IFinder[T]
RegisterAfterHooks mocks base method.
func (*MockIFinder[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (m *MockIFinder[T]) RegisterBeforeHooks(hooks ...finder.BeforeHookFn[T]) finder.IFinder[T]
RegisterBeforeHooks mocks base method.
func (*MockIFinder[T]) Skip ¶ added in v2.4.0
func (m *MockIFinder[T]) Skip(skip int64) finder.IFinder[T]
Skip mocks base method.
type MockIFinderMockRecorder ¶
type MockIFinderMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIFinderMockRecorder is the mock recorder for MockIFinder.
func (*MockIFinderMockRecorder[T]) Count ¶
func (mr *MockIFinderMockRecorder[T]) Count(ctx any, opts ...any) *gomock.Call
Count indicates an expected call of Count.
func (*MockIFinderMockRecorder[T]) Distinct ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) Distinct(ctx, fieldName any, opts ...any) *gomock.Call
Distinct indicates an expected call of Distinct.
func (*MockIFinderMockRecorder[T]) DistinctWithParse ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) DistinctWithParse(ctx, fieldName, result any, opts ...any) *gomock.Call
DistinctWithParse indicates an expected call of DistinctWithParse.
func (*MockIFinderMockRecorder[T]) Filter ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) Filter(filter any) *gomock.Call
Filter indicates an expected call of Filter.
func (*MockIFinderMockRecorder[T]) Find ¶
func (mr *MockIFinderMockRecorder[T]) Find(ctx any, opts ...any) *gomock.Call
Find indicates an expected call of Find.
func (*MockIFinderMockRecorder[T]) FindOne ¶
func (mr *MockIFinderMockRecorder[T]) FindOne(ctx any, opts ...any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockIFinderMockRecorder[T]) FindOneAndUpdate ¶ added in v2.2.3
func (mr *MockIFinderMockRecorder[T]) FindOneAndUpdate(ctx any, opts ...any) *gomock.Call
FindOneAndUpdate indicates an expected call of FindOneAndUpdate.
func (*MockIFinderMockRecorder[T]) GetCollection ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) GetCollection() *gomock.Call
GetCollection indicates an expected call of GetCollection.
func (*MockIFinderMockRecorder[T]) Limit ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) Limit(limit any) *gomock.Call
Limit indicates an expected call of Limit.
func (*MockIFinderMockRecorder[T]) ModelHook ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
ModelHook indicates an expected call of ModelHook.
func (*MockIFinderMockRecorder[T]) PostActionHandler ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) PostActionHandler(ctx, globalOpContext, opContext any, opTypes ...any) *gomock.Call
PostActionHandler indicates an expected call of PostActionHandler.
func (*MockIFinderMockRecorder[T]) PreActionHandler ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) PreActionHandler(ctx, globalOpContext, opContext any, opTypes ...any) *gomock.Call
PreActionHandler indicates an expected call of PreActionHandler.
func (*MockIFinderMockRecorder[T]) RegisterAfterHooks ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
RegisterAfterHooks indicates an expected call of RegisterAfterHooks.
func (*MockIFinderMockRecorder[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
RegisterBeforeHooks indicates an expected call of RegisterBeforeHooks.
func (*MockIFinderMockRecorder[T]) Skip ¶ added in v2.4.0
func (mr *MockIFinderMockRecorder[T]) Skip(skip any) *gomock.Call
Skip indicates an expected call of Skip.
type MockIUpdater ¶
type MockIUpdater[T any] struct { // contains filtered or unexported fields }
MockIUpdater is a mock of IUpdater interface.
func NewMockIUpdater ¶
func NewMockIUpdater[T any](ctrl *gomock.Controller) *MockIUpdater[T]
NewMockIUpdater creates a new mock instance.
func (*MockIUpdater[T]) EXPECT ¶
func (m *MockIUpdater[T]) EXPECT() *MockIUpdaterMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIUpdater[T]) Filter ¶ added in v2.4.0
func (m *MockIUpdater[T]) Filter(filter any) updater.IUpdater[T]
Filter mocks base method.
func (*MockIUpdater[T]) GetCollection ¶ added in v2.4.0
func (m *MockIUpdater[T]) GetCollection() *mongo.Collection
GetCollection mocks base method.
func (*MockIUpdater[T]) ModelHook ¶ added in v2.4.0
func (m *MockIUpdater[T]) ModelHook(modelHook any) updater.IUpdater[T]
ModelHook mocks base method.
func (*MockIUpdater[T]) PostActionHandler ¶ added in v2.4.0
func (m *MockIUpdater[T]) PostActionHandler(ctx context.Context, globalOpContext *operation.OpContext, opContext *updater.OpContext, opType operation.OpType) error
PostActionHandler mocks base method.
func (*MockIUpdater[T]) PreActionHandler ¶ added in v2.4.0
func (m *MockIUpdater[T]) PreActionHandler(ctx context.Context, globalOpContext *operation.OpContext, opContext *updater.OpContext, opType operation.OpType) error
PreActionHandler mocks base method.
func (*MockIUpdater[T]) RegisterAfterHooks ¶ added in v2.4.0
func (m *MockIUpdater[T]) RegisterAfterHooks(hooks ...updater.AfterHookFn) updater.IUpdater[T]
RegisterAfterHooks mocks base method.
func (*MockIUpdater[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (m *MockIUpdater[T]) RegisterBeforeHooks(hooks ...updater.BeforeHookFn) updater.IUpdater[T]
RegisterBeforeHooks mocks base method.
func (*MockIUpdater[T]) Replacement ¶ added in v2.4.0
func (m *MockIUpdater[T]) Replacement(replacement any) updater.IUpdater[T]
Replacement mocks base method.
func (*MockIUpdater[T]) UpdateMany ¶
func (m *MockIUpdater[T]) UpdateMany(ctx context.Context, opts ...options.Lister[options.UpdateManyOptions]) (*mongo.UpdateResult, error)
UpdateMany mocks base method.
func (*MockIUpdater[T]) UpdateOne ¶
func (m *MockIUpdater[T]) UpdateOne(ctx context.Context, opts ...options.Lister[options.UpdateOneOptions]) (*mongo.UpdateResult, error)
UpdateOne mocks base method.
func (*MockIUpdater[T]) Updates ¶ added in v2.4.0
func (m *MockIUpdater[T]) Updates(updates any) updater.IUpdater[T]
Updates mocks base method.
func (*MockIUpdater[T]) Upsert ¶
func (m *MockIUpdater[T]) Upsert(ctx context.Context, opts ...options.Lister[options.UpdateOneOptions]) (*mongo.UpdateResult, error)
Upsert mocks base method.
type MockIUpdaterMockRecorder ¶
type MockIUpdaterMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIUpdaterMockRecorder is the mock recorder for MockIUpdater.
func (*MockIUpdaterMockRecorder[T]) Filter ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) Filter(filter any) *gomock.Call
Filter indicates an expected call of Filter.
func (*MockIUpdaterMockRecorder[T]) GetCollection ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) GetCollection() *gomock.Call
GetCollection indicates an expected call of GetCollection.
func (*MockIUpdaterMockRecorder[T]) ModelHook ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) ModelHook(modelHook any) *gomock.Call
ModelHook indicates an expected call of ModelHook.
func (*MockIUpdaterMockRecorder[T]) PostActionHandler ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) PostActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
PostActionHandler indicates an expected call of PostActionHandler.
func (*MockIUpdaterMockRecorder[T]) PreActionHandler ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) PreActionHandler(ctx, globalOpContext, opContext, opType any) *gomock.Call
PreActionHandler indicates an expected call of PreActionHandler.
func (*MockIUpdaterMockRecorder[T]) RegisterAfterHooks ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) RegisterAfterHooks(hooks ...any) *gomock.Call
RegisterAfterHooks indicates an expected call of RegisterAfterHooks.
func (*MockIUpdaterMockRecorder[T]) RegisterBeforeHooks ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) RegisterBeforeHooks(hooks ...any) *gomock.Call
RegisterBeforeHooks indicates an expected call of RegisterBeforeHooks.
func (*MockIUpdaterMockRecorder[T]) Replacement ¶ added in v2.4.0
func (mr *MockIUpdaterMockRecorder[T]) Replacement(replacement any) *gomock.Call
Replacement indicates an expected call of Replacement.
func (*MockIUpdaterMockRecorder[T]) UpdateMany ¶
func (mr *MockIUpdaterMockRecorder[T]) UpdateMany(ctx any, opts ...any) *gomock.Call
UpdateMany indicates an expected call of UpdateMany.
func (*MockIUpdaterMockRecorder[T]) UpdateOne ¶
func (mr *MockIUpdaterMockRecorder[T]) UpdateOne(ctx any, opts ...any) *gomock.Call
UpdateOne indicates an expected call of UpdateOne.