Categorygithub.com/pandaychen/tcp-graceful
modulepackage
0.0.0-20230117115627-bf5645588d30
Repository: https://github.com/pandaychen/tcp-graceful.git
Documentation: pkg.go.dev

# README

tcp-graceful

一个基于golang的优雅热重启库实现,支持golang-TCP服务

关联文章:Golang 系统编程:如何实现对后台服务优雅的热重启?

测试方法:

  1. 启动主程序,通过cat /var/run/tmp.pid获取当前主进程的$pid
  2. 通过kill -SIGHUP $pid执行主程序的热重启机制
  3. 重启后的生成新的主程序不改变当前运行的相对路径

# Packages

No description provided by the author

# Functions

No description provided by the author
NewTcpServer ...
NewTcpServerFromENV ...

# Constants

No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author