Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInheritListener ¶ added in v0.1.1
func SetInheritListener(address []InheritAddr) error
SetInheritListener 启动master worker模式的监听
func SetShutdown ¶ added in v0.1.1
SetShutdown 设置重启钩子
Types ¶
type GraceModel ¶ added in v0.1.1
type GraceModel int
GraceModel 平滑重启模型
const ( // GraceChangeProcess 使用父子进程平滑重启 GraceChangeProcess GraceModel = 1 // GraceMasterWorker 使用master worker进程平滑重启 GraceMasterWorker GraceModel = 2 )
Click to show internal directories.
Click to hide internal directories.