Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// InheritFdPrefix marks the fd inherited from parent process
InheritFdPrefix = "LISTEN_FD_INHERIT"
)
Functions ¶
func CreateListener ¶
CreateListener creates a listener from inherited fd if there is no inherited fd, create a now one.
func CreateUDPConn ¶
CreateUDPConn creates a udp connection from inherited fd if there is no inherited fd, create a now one.
func GetAllLisenFiles ¶
GetAllLisenFiles returns all listen files
func GraceHandler ¶
func GraceHandler(userFunc, stopFunc handlerFunc)
GraceHandler set the signle handler for grace restart
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.