v2

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graceful

type Graceful struct {
	// contains filtered or unexported fields
}

Holds *http.Server that needs to be stopped graceful.

func New

func New(srv *http.Server) *Graceful

Initialize Graceful

func (*Graceful) Start

func (g *Graceful) Start() error

Starts a http.Server that shuts down on SIGINT or SIGTERM.

func (*Graceful) Stop

func (g *Graceful) Stop() error

Shuts down the server.

Jump to

Keyboard shortcuts

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