storage

package
v0.0.0-...-fafa807 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *mongo.Client

Client return mongo client.

func CloseMongo

func CloseMongo(ctx context.Context) error

CloseMongo disconnect mongo.

func Database

func Database(name string) *mongo.Database

Database return database by name.

func InitMongo

func InitMongo() (err error)

InitMongo init mongo driver.

func InitSqlx

func InitSqlx() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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