db

package
v0.0.0-...-47020db Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDup

func IsDup(err error) bool

IsDup checks if MongoDB error has error code 11000 (duplicate)

func NewStorage

func NewStorage(database *mongo.Database, collection string, logger *logging.Logger) links.Storage

Types

type WriteError

type WriteError struct {
	WriteErrors mongo.WriteErrors
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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