db

package module
v0.0.0-...-713942b Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB      *gorm.DB
	GoRedis *redis.Client
	Redigo  redigo.Conn
)

Functions

func GoRedisInit

func GoRedisInit(conf Redis)

func MysqlInit

func MysqlInit(conf MySQL)

func RedigoInit

func RedigoInit(conf Redis)

Types

type MySQL

type MySQL struct {
	DSN string `yaml:"dsn"`
}

type Redis

type Redis struct {
	Address  string `yaml:"address"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	DB       int    `yaml:"db"`
}

Jump to

Keyboard shortcuts

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