rdb

package
v0.0.0-...-0098b58 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoClient

type MongoClient struct {
	Database string
	// contains filtered or unexported fields
}

MongoClient mongodb client.

func NewMongoClient

func NewMongoClient(conf config.AccessPoint) (*MongoClient, error)

NewMongoClient Create DBEngine instance.

func (*MongoClient) Conn

func (client *MongoClient) Conn() *qmgo.QmgoClient

Conn return connection.

func (*MongoClient) DB

func (client *MongoClient) DB() *qmgo.Database

DB return db.

func (*MongoClient) SetLogger

func (client *MongoClient) SetLogger(logger slog.Logger)

SetLogger set logger.

Jump to

Keyboard shortcuts

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