dbService

package
v0.0.0-...-f45b2b9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound        = mon.ErrNotFound
	ErrInvalidObjectId = errors.New("invalid objectId")
)

Functions

func WithTransaction

func WithTransaction(ctx context.Context, client *monc.Model, txnFn TransactionFunc) error

Types

type TransactionFunc

type TransactionFunc func(ctx mongo.SessionContext) error

Jump to

Keyboard shortcuts

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