process

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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
	Disabled 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