db

package
v0.0.0-...-23edbc9 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_HOST     = "db"
	DB_PORT     = "5432"
	DB_USER     = "postgres"
	DB_PASSWORD = "postgres"
	DB_NAME     = "alviss"
)

initialize the database using postgres

View Source
const (
	REDIS_HOST     = "redis"
	REDIS_PORT     = "6379"
	REDIS_PASSWORD = ""
)

initialaize the redis client

Variables

This section is empty.

Functions

func InitDB

func InitDB() *sql.DB

func InitRedis

func InitRedis() *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