Documentation
¶
Index ¶
- type Driver
- func (d Driver) CanRetry(err error) bool
- func (d Driver) DriverName() string
- func (d Driver) Err(err error) error
- func (d Driver) ErrWrap(err error, args ...interface{}) error
- func (d Driver) ErrWrapf(err error, format string, args ...interface{}) error
- func (d Driver) ErrorCode(err error) cgerrors.ErrorCode
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) DriverName ¶
DriverName implements database.Driver interface.
func (Driver) ErrWrap ¶ added in v0.0.27
ErrWrap wraps an error, checks its related code and sets the detail as the args.
Click to show internal directories.
Click to hide internal directories.