termsig

package
v0.0.0-...-b03ede8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIGINT  = Signal(syscall.SIGINT)
	SIGHUP  = Signal(syscall.SIGHUP)
	SIGTERM = Signal(syscall.SIGTERM)
	SIGQUIT = Signal(syscall.SIGQUIT)
	SIGKILL = Signal(syscall.SIGKILL)
)

Supported termination signals.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

type Signal syscall.Signal

Signal represents an operating system termination signal used to initiate graceful shutdown procedures. It wraps syscall.Signal to provide additional functionality for handling termination signals like SIGINT, SIGTERM, etc. See https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html

func (Signal) MarshalText

func (s Signal) MarshalText() ([]byte, error)

MarshalText returns the text representation of the signal.

func (Signal) String

func (s Signal) String() string

String returns the string representation of the signal.

func (*Signal) UnmarshalText

func (s *Signal) UnmarshalText(b []byte) error

func (Signal) Unwrap

func (s Signal) Unwrap() syscall.Signal

Unwrap returns the syscall.Signal value of the ShutdownSignal.

Jump to

Keyboard shortcuts

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