grace

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreSignal = iota
	PostSignal
)

Variables

View Source
var (
	SignalHooks map[int]map[os.Signal][]func()
)

Functions

func After

func After(f func())

func Before

func Before(f func())

func Done

func Done() error

func ExtraFileOrder

func ExtraFileOrder(name string) int

func IsFork

func IsFork() bool

func ParseCommandLine

func ParseCommandLine()

func RegisterFiles

func RegisterFiles(name string, f *os.File)

func RegisterSignalHook

func RegisterSignalHook(phase int, f func(), sigs ...os.Signal)

Types

This section is empty.

Jump to

Keyboard shortcuts

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