graceh2c

package
v1.6.2-bcom Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextTimeout

func ContextTimeout(timeout time.Duration) option

ContextTimeout is the maximum time for which the H2C server waits after calling Stop() on it while the current connections close; after which the server closes them forcefully and exits.

defaults to 60s

func Logger

func Logger(l *log.Logger) option

Types

type H2CServer

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

func NewH2CServer

func NewH2CServer(server *http.Server, options ...option) *H2CServer

func (*H2CServer) Server

func (s *H2CServer) Server() *http.Server

func (*H2CServer) ShutdownDone

func (s *H2CServer) ShutdownDone() chan struct{}

func (*H2CServer) ShuttingDown

func (s *H2CServer) ShuttingDown() chan struct{}

func (*H2CServer) Stop

func (s *H2CServer) Stop(forceClose bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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