mongo

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

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

Mongo contains functions for magazine mongodb.

func New

func New(mdb *mongo.Database) *Mongo

New to create new magazine database.

func (*Mongo) BatchUpdate

func (m *Mongo) BatchUpdate(ctx context.Context, data []entity.Magazine) (int, error)

BatchUpdate to batch update.

Jump to

Keyboard shortcuts

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