package
1.0.23
Repository: https://github.com/nextmicro/next.git
Documentation: pkg.go.dev

# Functions

AddShutdownListener adds fn as a shutdown listener.
AddWrapUpListener adds fn as a wrap up listener.
Done 返回一个channel,用于通知进程退出.
No description provided by the author
No description provided by the author
InitSignalHandling 初始化信号处理.
Pid returns pid of current process.
ProcessName returns the processname, same as the command name.
SetTimeToForceQuit sets the waiting time before force quitting.
Shutdown calls the registered shutdown listeners, only for test purpose.
StartProfile starts a new profiling session.
WrapUp wraps up the process, only for test purpose.

# Constants

DefaultMemProfileRate is the default memory profiling rate.

# Structs

DefaultProcessor 实现了SignalProcessor接口,提供默认信号处理逻辑.
Profile represents an active profiling session.

# Interfaces

SignalProcessor 定义了处理特定信号的逻辑的接口.
No description provided by the author