configs

package
v0.0.0-...-dcfd991 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretJWT string

Functions

func InitDB

func InitDB() (*gorm.DB, error)

func InitMigrate

func InitMigrate(DB *gorm.DB)

func LoadEnv

func LoadEnv(key string) (value string)

Types

type Config

type Config struct {
	ServerPort  string
	AppVersion  string
	Mode        string
	LoggerLevel string
	SecretJWT   string
	DB          *gorm.DB
	BaseURL     string
}

func LoadConfig

func LoadConfig() (config *Config)

Jump to

Keyboard shortcuts

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