Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFile = "settings.yaml"
配置文件路径常量
Variables ¶
This section is empty.
Functions ¶
func ConnectRedisDB ¶
func InitDefaultLogger ¶
func InitDefaultLogger()
InitDefaultLogger 配置全局logrus实例 它的作用与InitLogger相似,但不返回logger实例
func InitLogger ¶
InitLogger 初始化并返回一个配置好的logrus.Logger实例 它根据全局配置设置输出、格式化器、日志级别等
func UpdateYaml ¶
func UpdateYaml() error
Types ¶
Click to show internal directories.
Click to hide internal directories.