stopsignal

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignalHandler added in v1.1.1

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

func NewSignalHandler added in v1.1.1

func NewSignalHandler(shutdownDelay time.Duration, logger log.Logger) *SignalHandler

func (*SignalHandler) Handler added in v1.1.1

func (sh *SignalHandler) Handler(signals ...os.Signal) (run func() error, stop func(error))

func (*SignalHandler) Ready added in v1.1.1

func (sh *SignalHandler) Ready() bool

func (*SignalHandler) Stop added in v1.1.1

func (sh *SignalHandler) Stop()

Jump to

Keyboard shortcuts

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