server

package
v0.0.0-...-ff0355e Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(port string)

Serve http content on given port

func ServeView

func ServeView(port string)

ServeView on the given port

Types

type ShutdownListener

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

ShutdownListener struct

func New

func New(servers []http.Server) *ShutdownListener

New ShutdownListener

func (*ShutdownListener) Listen

func (s *ShutdownListener) Listen(port string, servers []http.Server)

Listen for a request to shutdown the servers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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