graceful

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(reloadSignals []os.Signal, shutdownSignals []os.Signal, handlerTimeout time.Duration, signalHandler SignalHandler) infra.Graceful

func NewWithDefault

func NewWithDefault(perHandlerTimeout time.Duration) infra.Graceful

func NewWithSignal

func NewWithSignal(reloadSignals []os.Signal, shutdownSignals []os.Signal, perHandlerTimeout time.Duration) infra.Graceful

Types

type Handler

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

func (Handler) String

func (h Handler) String() string

type SignalHandler

type SignalHandler func(signalChan chan os.Signal, signals []os.Signal)

Jump to

Keyboard shortcuts

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