anyserver

package
v0.0.0-...-97057f0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithGracefulShutdown

func RunWithGracefulShutdown(errorFunc func(error), servers ...*Server)

Types

type Server

type Server struct {
	Start           func() error
	Stop            func(context.Context) error
	SetupError      error
	ShutdownTimeout time.Duration
	DisposeBag      []func() error
}

Jump to

Keyboard shortcuts

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