core

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 Paging added in v0.0.5

func Paging(page uint, pageSize uint, option *options.FindOptions)

func Setup

func Setup(logger *zap.Logger, config *model.ConfigEntity) *mongo.Database

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

func StrIdToObjectId(ids []string) []primitive.ObjectID

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL