http

package
v0.2.71 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulStop

func GracefulStop()

GracefulStop stops the http(s) server gracefully.

func Run

func Run(s *nethttp.Server, a ...string) <-chan os.Signal

Run starts a http(s) server. It returns a channel which is configured to listen system process termination signals: INTR, TERM. If server object is given as a first argument, it is used. If also certFile and keyFile names are given (in this order) the https server is started.

Types

This section is empty.

Jump to

Keyboard shortcuts

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