supervised

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShutdownAllGracefully added in v1.2.1

func ShutdownAllGracefully(shutdownCtx context.Context, shutdowners ...GracefulShutdowner)

func ShutdownGracefully added in v1.2.1

func ShutdownGracefully(s GracefulShutdowner, timeout time.Duration)

Types

type ChanShutdownWaiter added in v1.2.1

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

func NewChanWaiter added in v1.2.1

func NewChanWaiter(description string) ChanShutdownWaiter

func (*ChanShutdownWaiter) Shutdown added in v1.2.1

func (c *ChanShutdownWaiter) Shutdown()

func (*ChanShutdownWaiter) WaitUntilShutdown added in v1.2.1

func (c *ChanShutdownWaiter) WaitUntilShutdown(shutdownContext context.Context)

type GracefulShutdowner added in v1.2.1

type GracefulShutdowner interface {
	GracefulShutdown(shutdownContext context.Context)
}

type OSShutdownListener added in v1.2.1

type OSShutdownListener struct {
	Logger log.Logger
	// contains filtered or unexported fields
}

func NewShutdownListener added in v1.2.1

func NewShutdownListener(logger log.Logger, shutdowner GracefulShutdowner) *OSShutdownListener

func (*OSShutdownListener) ListenToOSShutdownSignal added in v1.2.1

func (n *OSShutdownListener) ListenToOSShutdownSignal()

Jump to

Keyboard shortcuts

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