process

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launcher

type Launcher struct {
	Name    string
	Enabled bool
	Launch  func() (Process, error)
}

type Process

type Process interface {
	Shutdown(context.Context) error
}

Copies the signature from http.Server's graceful shutdown method

func FromListeners

func FromListeners(listeners ...net.Listener) Process

Providers a Process implementation from Listeners that are closed on shutdown

type ShutdownFunc

type ShutdownFunc func(context.Context) error

func (ShutdownFunc) Shutdown

func (sf ShutdownFunc) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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