package
Version:
v0.0.0-...-5893fcd
Opens a new window with list of versions in this module.
Published: Aug 31, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func InitConf(obj interface{})
InitConf 读取yaml文件
获取配置
MasterInitConf 初始化master配置
type DBPath struct {
Data string `yaml:"data"`
Performance string `yaml:"performance"`
}
DBPath 数据持久化db文件保存路径
type HttpServer struct {
Prod string `yaml:"prod"`
}
HttpServer http服务
type Jwt struct {
Secret string `yaml:"secret"`
Expire int `yaml:"expire"`
}
Jwt jwt配置
type MasterInfo struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
}
MasterInfo master信息
type TcpServer struct {
Prod int `yaml:"prod"`
}
TcpServer tcp服务
type UdpClient struct {
Prod string `yaml:"prod"`
}
UdpClient udp客户端
type UdpServer struct {
Prod int `yaml:"prod"`
}
UdpServer udp服务
Source Files
¶
Click to show internal directories.
Click to hide internal directories.