Documentation
¶
Overview ¶
Package mongodb provides a MongoDB client connection with optional TLS.
Index ¶
Constants ¶
View Source
const ( ErrCodeReadCertFile = "MNG-001" ErrCodeAppendCert = "MNG-002" ErrCodeConnection = "MNG-003" )
Variables ¶
View Source
var ( ErrReadCertFile = func(cause error) error { return jet.NewAppErrBuilder(ErrCodeReadCertFile, "certificate file reading error").Wrap(cause).Err() } ErrAppendCert = func(cause error) error { return jet.NewAppErrBuilder(ErrCodeAppendCert, "appending certificate error").Wrap(cause).Err() } ErrConnection = func(cause error) error { return jet.NewAppErrBuilder(ErrCodeConnection, "connection error").Wrap(cause).Err() } )
Functions ¶
func BsonDecode ¶
func BsonEncode ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.