shutdown

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context() context.Context

func Exit

func Exit(msg string)

Exit 发送退出进程信号

func WaitExit

func WaitExit(config *Configuration)

Types

type Configuration

type Configuration struct {
	// 退出前回调操作
	BeforeExit func(string)
	// 定义要接受的系统信号
	Signals []os.Signal
}

Jump to

Keyboard shortcuts

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