njs_httpserver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunning

func IsRunning(allSrv ...HTTPServer) bool

func Listen

func Listen(allSrv ...HTTPServer)

func ListenWaitNotify

func ListenWaitNotify(allSrv ...HTTPServer)

func Restart

func Restart(allSrv ...HTTPServer)

func Shutdown

func Shutdown(allSrv ...HTTPServer)

Types

type HTTPServer

type HTTPServer interface {
	GetBindable() string
	GetExpose() string
	IsRunning() bool

	Listen()
	Restart()
	Shutdown()

	WaitNotify()
}

func NewServer

func NewServer(listen, expose string, handler http.Handler, tlsConfig *tls.Config) HTTPServer

Jump to

Keyboard shortcuts

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