signals

package
v0.0.0-...-2891190 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShutDownSignals = []os.Signal{syscall.SIGINT, syscall.SIGTERM}

Functions

func SetupSignalHandler

func SetupSignalHandler(fn func(*config.CmdOpts, chan<- bool), cmdOpts *config.CmdOpts, doneCh chan<- bool)

SetupSignalHandler 设置信号处理机制, 但不设计具体的处理操作 具体的处理操作需要 fn 参数传入

Types

This section is empty.

Jump to

Keyboard shortcuts

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