db

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var Redis *redis.Client

Functions

func Init

func Init(mysqlConf *MySQLConfig, redisConf *RedisConfig) error

Types

type MySQLConfig

type MySQLConfig struct {
	Host           string
	Port           int
	User           string
	Password       string
	Database       string
	Charset        string
	MaxOpenConn    int
	MaxIdleConn    int
	MaxLifeTimeMin int
}

type RedisConfig

type RedisConfig struct {
	Host        string
	Port        int
	Password    string
	PoolSize    int
	MinIdleConn int
	Db          int
}

Jump to

Keyboard shortcuts

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