Documentation ¶
Index ¶
- func AddInheritedFunc(fn func([]net.Listener, map[string]string))
- func Append(ln net.Listener) error
- func GetInheritedFunc(fn func() []int)
- func Listen(nett, addr string) (net.Listener, error)
- func ListenTCP(nett string, addr *net.TCPAddr) (*net.TCPListener, error)
- func ListenUnix(nett string, addr *net.UnixAddr) (*net.UnixListener, error)
- func SetInherited() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInheritedFunc ¶
AddInheritedFunc 平滑重启的时候,会回调该方法,保存fd列表
func GetInheritedFunc ¶
func GetInheritedFunc(fn func() []int)
GetInheritedFunc 如果是平滑重启,可以获取到从父进程继承过来的fd列表
func ListenUnix ¶
ListenUnix 监听unix协议
func SetInherited ¶
func SetInherited() error
SetInherited 添加files列表到环境变量,让子进程继承, 1. 只有在reboot使用 2. 不支持windows系统
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.