configs

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetDB

func GetDB(lg *CustomLogger) (*gorm.DB, error)

func GetRedis

func GetRedis(lg *CustomLogger) *redis.Client

Types

type CustomLogger added in v1.4.2

type CustomLogger struct {
	*log.Logger
}

func NewLogger added in v1.4.2

func NewLogger() *CustomLogger

Jump to

Keyboard shortcuts

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