mongox

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoX

type MongoX struct {
	// contains filtered or unexported fields
}

func NewMongo

func NewMongo(host, port string, username, password string, database, collection string, connectTimeOut time.Duration, maxConnectionPoolSize uint64, maxConnectionLifeTime time.Duration) *MongoX

func (*MongoX) Delete

func (t *MongoX) Delete(ctx context.Context, id string) (int64, error)

func (*MongoX) DetailEventLog

func (t *MongoX) DetailEventLog(ctx context.Context, id string) (bson.M, error)

func (*MongoX) Edit

func (t *MongoX) Edit(ctx context.Context, id string, payload any) (int64, error)

func (*MongoX) EventLogs

func (t *MongoX) EventLogs(ctx context.Context, filter bson.M, page, pageSize int64) ([]bson.M, int64, error)

Jump to

Keyboard shortcuts

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