keeper

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSignalCallback

func AddSignalCallback(cb func(), signals ...syscall.Signal)

func ExecuteShutdownCallbacks

func ExecuteShutdownCallbacks(signame string) (exitCode int)

func OnProcessExit

func OnProcessExit(cb func())

func OnProcessShutDown

func OnProcessShutDown(cb func() error)

func OnProcessShutDownFirst added in v0.14.0

func OnProcessShutDownFirst(cb func() error)

OnProcessShutDownFirst insert the callback func into the header

func SetPid

func SetPid(pid string)

func WritePidFile added in v0.15.0

func WritePidFile() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL