database

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IsConnected returns the connection status
	IsConnected bool
	IsSQLite    bool
	DB          *gorm.DB
)
View Source
var (
	// IsRedisConnected returns the connection status
	IsRedisConnected bool
	Redis            *redis.Client
)

Functions

func GetDB

func GetDB() *gorm.DB

func GetRedis

func GetRedis() *redis.Client

GetRedis returns the redis client

Types

This section is empty.

Jump to

Keyboard shortcuts

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