minhttp

package
v0.0.0-...-b47d722 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package minhttp provides easy to use graceful restart for a set of HTTP services

This package is a fork from https://github.com/facebookgo/grace

Re-licensing with Apache License 2.0, with code modifications

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(servers ...*http.Server) *probe.Error

ListenAndServe will serve the given http.Servers and will monitor for signals allowing for graceful termination (SIGTERM) or restart (SIGUSR2/SIGHUP).

func ListenAndServeLimited

func ListenAndServeLimited(connLimit int, servers ...*http.Server) *probe.Error

ListenAndServeLimited is similar to ListenAndServe but ratelimited with connLimit value

Types

This section is empty.

Jump to

Keyboard shortcuts

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