config

package
v0.0.0-...-93b8502 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = &Conf{
	AppConfig: App,
	Server:    Server,
	Mysql:     Mysql,
	Redis:     Redis,
	Logger:    Logger,
}

Functions

func InitConfig

func InitConfig(configPath string)

Types

type Conf

type Conf struct {
	AppConfig `ini:"app" yaml:"app"`
	Server    ServerConfig `ini:"server" yaml:"server"`
	Mysql     MysqlConfig  `ini:"mysql" yaml:"mysql"`
	Redis     RedisConfig  `ini:"redis" yaml:"redis"`
	Logger    LoggerConfig `ini:"logger" yaml:"logger"`
}

Conf 配置项主结构体

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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