database

package
v0.0.0-...-bbec25a Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PGHOST     = config.Env("PGHOST")
	PGPASSWORD = config.Env("PGPASSWORD")
	PGPORT     = config.Env("PGPORT")
	PGUSER     = config.Env("PGUSER")
	PGDATABASE = config.Env("PGDATABASE")
	Data       *gorm.DB
)
View Source
var (
	REDISHOST     = config.Env("REDISHOST")
	REDISPASSWORD = config.Env("REDISPASSWORD")
	REDISPORT     = config.Env("REDISPORT")
	REDISUSER     = config.Env("REDISUSER")
	Client        *redis.Client
)

Functions

func ConnectToPostgreSql

func ConnectToPostgreSql()

func ConnectToRedis

func ConnectToRedis()

Types

This section is empty.

Jump to

Keyboard shortcuts

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