process

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenerFromAddress added in v0.25.0

func ListenerFromAddress(listenAddress string) (net.Listener, error)

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

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