process

package
v0.24.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

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