mongodb

package
v0.0.0-...-df163ab Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyDocDB

type MyDocDB com.DocDB

DocDB is the interface for document database

func (*MyDocDB) Connect

func (db *MyDocDB) Connect() error

Connect establishes a connection to the document database. It returns an error if the connection fails.

func (*MyDocDB) Disconnect

func (db *MyDocDB) Disconnect() error

Disconnect closes the connection to the document database. It returns an error if the disconnection fails.

func (*MyDocDB) Ping

func (db *MyDocDB) Ping() error

func (*MyDocDB) ReConnect

func (db *MyDocDB) ReConnect() error

ReConnect reconnects to the document database. It returns an error if the reconnection fails.

Jump to

Keyboard shortcuts

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