xmongo

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver is the implementation of the database.Driver for the MongoDB.

func (Driver) CanRetry

func (d Driver) CanRetry(err error) bool

CanRetry implements database.Driver interface.

func (Driver) DriverName

func (d Driver) DriverName() string

DriverName implements database.Driver interface.

func (Driver) Err

func (d Driver) Err(err error) error

Err gets the standard error conversion.

func (Driver) ErrWrap added in v0.0.27

func (d Driver) ErrWrap(err error, args ...interface{}) error

ErrWrap wraps an error, checks its related code and sets the detail as the args.

func (Driver) ErrWrapf added in v0.0.27

func (d Driver) ErrWrapf(err error, format string, args ...interface{}) error

ErrWrapf wraps an error and sets current error formatted details.

func (Driver) ErrorCode

func (d Driver) ErrorCode(err error) cgerrors.ErrorCode

ErrorCode implements database.Driver interface.

Jump to

Keyboard shortcuts

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