initializ

package
v0.0.0-...-7c00e79 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mongo

func Mongo() (err error)

func MongoClose

func MongoClose()

func MySQL

func MySQL(cfg *settings.MySQLConfig) (err error)

func MySQLClose

func MySQLClose()

MySQLClose 将关闭数据库并阻止启动新查询。关闭,然后等待服务器上已开始处理的所有查询完成。

 关闭数据库的情况很少见,
	因为数据库句柄是长期存在的,并且在许多 goroutines 之间共享

func Redis

func Redis(cfg *settings.RedisConfig) (err error)

Redis 初始化连接

func RedisClose

func RedisClose()

RedisClose 关闭客户端,释放所有打开的资源。 关闭客户端很少见,因为客户端是长期存在的, 并且在许多goroutine之间共享

Types

This section is empty.

Jump to

Keyboard shortcuts

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