driver

package
v0.0.0-...-d7dac23 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDb

func CreateDb(dbDsn string, maxOpenConn, maxIdleConn int) (*gorm.DB, error)

CreateDb create mysql db

func CreateRedis

func CreateRedis(addr, pass string, rdb int) (*redis.Client, error)

CreateRedis 初始化redis 连接

func InitEs

func InitEs(url string) (*elastic.Client, error)

func InitLevelDb

func InitLevelDb(path string) *leveldb1.LevelDB

InitLevelDb init level db

func InitMongo

func InitMongo(addr string) (*mongo.Client, error)

InitMongo 初始化mongo

Types

This section is empty.

Jump to

Keyboard shortcuts

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