internal

package
v0.0.0-...-2cc2fc2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Caches map[int]*redis.Client
View Source
var DBs = make(map[string]*gorm.DB)
View Source
var DefaultConfigFile = "config"

Functions

func Cache

func Cache(dbs ...int) *redis.Client

Cache 连接缓存

func DB

func DB(keys ...string) *gorm.DB

DB 连接数据库

func GoRedisConnect

func GoRedisConnect(addr string, password string, db int) *redis.Client

func LoadConfig

func LoadConfig(filename ...string) *viper.Viper

LoadConfig 读取配置文件 @param filename: TOML类型的文件名,不需要扩展名

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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