Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrStalePidfile = errors.New("stale pidfile detected")
)
Functions ¶
func CheckPidfile ¶
CheckPidfile reads a PID from the specified file and verifies if a process with that PID is running. Returns os.ErrNotExist if the pidfile does not exist, otherwise returns an error wrapped in utils.ErrCheckPidfile if an error occurred during the check or utils.ErrStalePidfile if the PID file is stale.
func ObservableCloseHandler ¶
func ObservableErrorHandler ¶
func TrimWithEllipsis ¶
TrimWithEllipsis trims a string if it is longer than trimLength and appends an ellipsis if the string was trimmed
Types ¶
type ErrCheckPidfile ¶
type ErrCheckPidfile struct {
// contains filtered or unexported fields
}
func (ErrCheckPidfile) Error ¶
func (e ErrCheckPidfile) Error() string
func (ErrCheckPidfile) Unwrap ¶
func (e ErrCheckPidfile) Unwrap() error
Click to show internal directories.
Click to hide internal directories.