goProject/trunk/framework/signalMgr/doc.go
皮蛋13361098506 1b77f62820 初始化项目
2025-01-06 16:01:02 +08:00

11 lines
548 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package signalMgr
// 系统信号管理包
// 提供对操作系统信号的管理支持三种信号syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP
// 其中syscall.SIGTERM, syscall.SIGINT表示程序终止信号可以绑定一个方法在系统终止时进行调用
// syscall.SIGHUP表示程序重启信号可以绑定一个方法在系统重启时进行调用
// 使用方法:
// 调用func Start(reloadFunc func() []error, exitFunc func() error)
// 传入在重启和终止时需要调用的方法如果不需要则传入nil