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 OSShutdownListener ¶ added in v1.2.1
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()
Click to show internal directories.
Click to hide internal directories.