Documentation ¶
Index ¶
Constants ¶
View Source
const VERSION = "v0.0.6"
Variables ¶
This section is empty.
Functions ¶
func GTSysUseSignalWaitAppExit ¶
func GTSysUseSignalWaitAppExit(exitHandleFunc func(sigInfo *GTAppSignalInfo))
GTSysUseSignalWaitAppExit 处理程序信号,并且做一些操作,比如:保存状态、保存配置文件
func SetupGTGoTools ¶
func SetupGTGoTools(projectName string, logLevel logrus.Level, logMaxSaveDays int64, logSaveType gtbox_log.GTLogSaveType, exitSignalHandle func(sigInfo *GTAppSignalInfo))
SetupgtboxTools Requred Method 必须使用此方法初始化工具库,未使用此方法初始化,无法使用完整功能,亦存在兼容性问题 projectName--项目名称, logLevel--日志等级, logMaxSaveTime--默认365天, logSaveType--日志分片格式,默认按天分片,可选按小时分片 exitSignalHandle--程序退出监听回调函数
Types ¶
type GTAppSignalInfo ¶
Click to show internal directories.
Click to hide internal directories.