config

package
v0.0.0-...-c1e3cba Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MongoDBClient *mongo.Client
	AppMode       string
	HttpPort      string

	DB         string
	DBHost     string
	DBPort     string
	DBUser     string
	DBPassword string
	DBName     string

	RedisDB     string
	RedisAddr   string
	RedisPwd    string
	RedisDBName string

	MongoDBName string
	MongoDBAddr string
	MongoDBPwd  string
	MongoDBPort string
)
View Source
var Dictionary *map[interface{}]interface{}

Functions

func Init

func Init()

func LoadLocales

func LoadLocales(path string) error

LoadLocales 读取国际化文件

func LoadMongoDB

func LoadMongoDB(file *ini.File)

func LoadMySQL

func LoadMySQL(file *ini.File)

func LoadServer

func LoadServer(file *ini.File)

func MongoDB

func MongoDB()

func T

func T(key string) string

T 翻译

Types

This section is empty.

Jump to

Keyboard shortcuts

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