Documentation
¶
Overview ¶
*
- description: 配置加载
- author: jarekzha@gmail.com
- date: Aug 31, 2022
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LenStackBuf 异常堆栈信息 LenStackBuf = 1024 // Conf 配置结构体 Conf = Config{} )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Log map[string]interface{} `mqant:"Log"`
RPC RPC `mqant:"RPC"`
Module map[string][]*ModuleSettings `mqant:"Module"`
Mqtt Mqtt `mqant:"Mqtt"`
Settings map[string]interface{} `mqant:"Settings"`
}
Config 配置结构体
type ModuleSettings ¶
type ModuleSettings struct {
ID string `mqant:"ID"`
Host string `mqant:"Host"`
ProcessID string `mqant:"ProcessID"`
Settings map[string]interface{} `mqant:"Settings"`
}
ModuleSettings 模块配置
Click to show internal directories.
Click to hide internal directories.