package
Version:
v2.13.1
Opens a new window with list of versions in this module.
Published: May 3, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetProcessFromFile reads the pidfile and returns the running process or error if the process or file
are not available.
Option represent an option.
WithLogger adds a logger to the Watcher.
WithPIDFile specifies the pid file to use.
Server is the interface that servers like HTTP or gRPC
servers need to implement.
Watcher watches a process for a graceful restart
preserving open network sockets to avoid packet loss.
NewWatcher creates a Watcher.
Exit exits the current process cleaning up
existing pid files.
GetListeners return grpc listener first and http listener second.
TrapSignals captures the OS signal.
WritePID writes the pid to the configured pid file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.