config

package
v0.0.0-...-061a612 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACCESS_TOKEN_SECRETKEY = os.Getenv("ACCESS_TOKEN_SECRETKEY")
View Source
var REFRESH_TOKEN_SECRET_KEY = os.Getenv("REFRESH_TOKEN_SECRETKEY")

Functions

func DbConnect

func DbConnect() *gorm.DB

func DbURL

func DbURL(dbConfig *DBConfig) string

func RedisConnection

func RedisConnection() redis.Conn

Types

type DBConfig

type DBConfig struct {
	Host     string
	User     string
	DBName   string
	Password string
}

func BuildDBConfig

func BuildDBConfig() *DBConfig

Jump to

Keyboard shortcuts

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