Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenerFromAddress

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

    Source Files