db

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMysql

func NewMysql(c *MySQL) (*gorm.DB, error)

func NewRedis

func NewRedis(c *Redis) *redis.Client

Types

type MySQL added in v0.0.6

type MySQL struct {
	Addr           string
	UserName       string
	PassWord       string
	Database       string
	MinIdleCons    int
	MaxOpenCons    int
	ConMaxLeftTime int
}

type Redis added in v0.0.6

type Redis struct {
	Addr        string
	PassWord    string
	Db          int
	PoolSize    int
	MaxRetries  int
	MinIdleCons int
}

Jump to

Keyboard shortcuts

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