db

package
v0.0.0-...-c812e1d Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostgresConnect

func PostgresConnect() (db *gorm.DB, err error)

Connect function

func RedisConnect

func RedisConnect() (storage *redis.Storage, err error)

Types

type Dbinstance

type Dbinstance struct {
	PostgresDB *gorm.DB
	RedisDB    *redis.Storage
}

Database instance

var AppDB Dbinstance

Jump to

Keyboard shortcuts

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