global

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

公共Db对象

Functions

func InitDb

func InitDb()

连接数据库

func MongoClient

func MongoClient() *mongo.Client

使用单例模式, 提供一个外部访问方法 类似 GetInstance()

func RedisClient

func RedisClient() *redis.Client

使用单例模式, 提供一个外部访问方法 类似 GetInstance()

Types

This section is empty.

Jump to

Keyboard shortcuts

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