datasource

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *sql.DB

GetDB returns the database connection

func GetMongoDB

func GetMongoDB() (context.Context, *mongo.Database)

func GetRedis

func GetRedis() (context.Context, *redis.Client)

func InitDB

func InitDB() *sql.DB

func InitMongoDB

func InitMongoDB() (context.Context, *mongo.Client)

func InitRedis

func InitRedis() *redis.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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