shutdown

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.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 Option

type Option interface {
	Apply(*Shutdown)
}

Option interface

func WithDone

func WithDone(done chan bool) Option

WithDone method

func WithEndTask

func WithEndTask(fn func()) Option

WithEndTask method

func WithQuit

func WithQuit(quit chan os.Signal) Option

WithQuit method

func WithServerTimeout

func WithServerTimeout(duration time.Duration) Option

WithServerTimeout method

type Shutdown

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

Shutdown type

func NewShutdown

func NewShutdown(options ...Option) *Shutdown

NewShutdown method

func (Shutdown) Shutdown

func (s Shutdown) Shutdown()

Shutdown method

Jump to

Keyboard shortcuts

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