posixsignal

package
v0.0.0-...-4f9d474 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "PosixSignalManager"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewPosixSignalManager

func NewPosixSignalManager(signals ...os.Signal) *Manager

NewPosixSignalManager 初始化 POSIX 信号 shutdown 监听实例.

func (*Manager) GetName

func (m *Manager) GetName() string

func (*Manager) ShutdownFinish

func (m *Manager) ShutdownFinish() error

func (*Manager) ShutdownStart

func (m *Manager) ShutdownStart() error

func (*Manager) Start

func (m *Manager) Start(gs shutdown.GSInterface) error

Jump to

Keyboard shortcuts

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