env

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigOperator *viper.Viper
View Source
var Db *gorm.DB
View Source
var DefaultConfig *config.Config

Functions

func RegisterExtConfig

func RegisterExtConfig(config interface{})

func SetupConfig

func SetupConfig(configFilePath string, configOnly bool)

SetupConfig 配置初始化

Types

type Mode added in v1.6.0

type Mode string
const (
	ModeDev  Mode = "dev"     //开发模式
	ModeTest Mode = "test"    //测试模式
	ModeProd Mode = "prod"    //生产模式
	Mysql         = "mysql"   //mysql数据库标识
	Sqlite        = "sqlite3" //sqlite
)

func (Mode) String added in v1.6.0

func (e Mode) String() string

Jump to

Keyboard shortcuts

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