server

package
v0.0.0-...-6237511 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsecureServer

type InsecureServer struct {
	// An HTTP handler
	Handler http.Handler

	// Timeout to be waited on shutting-down the server, default is: 5 minutes
	ShutdownTimeout time.Duration
}

InsecureServer is a wrapper of net/http.Server which embeds net/http.Handler for handling incoming HTTP requests.

func (*InsecureServer) ListenAndServe

func (s *InsecureServer) ListenAndServe(addr string, stopCh <-chan struct{}) error

ListenAndServe will listen on a specific address

Jump to

Keyboard shortcuts

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