Documentation
¶
Index ¶
- func Delete(ctx context.Context, collection *mongo.Collection, id string)
- func DeleteMany(ctx context.Context, collection *mongo.Collection, ids []string)
- func Paging(page uint, pageSize uint, option *options.FindOptions)
- func Setup(logger *zap.Logger, config *model.ConfigEntity) *mongo.Database
- func SoftDelete(ctx context.Context, collection *mongo.Collection, id string)
- func SoftDeleteMany(ctx context.Context, collection *mongo.Collection, ids []string)
- func StrIdToObjectId(ids []string) []primitive.ObjectID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶ added in v0.0.5
func Delete(ctx context.Context, collection *mongo.Collection, id string)
func DeleteMany ¶ added in v0.0.5
func DeleteMany(ctx context.Context, collection *mongo.Collection, ids []string)
func SoftDelete ¶ added in v0.0.5
func SoftDelete(ctx context.Context, collection *mongo.Collection, id string)
func SoftDeleteMany ¶ added in v0.0.5
func SoftDeleteMany(ctx context.Context, collection *mongo.Collection, ids []string)
func StrIdToObjectId ¶ added in v0.0.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.