server

package
v0.0.0-...-2707d21 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cachebuster

func Cachebuster(h http.Handler) http.Handler

Cachebuster is a HTTP handler that attempts to turn off browser caching

Types

type NpvizServer

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

NpvizServer is a HTTP server responsible for communication with Web UI and serving static files for the very same UI

func NewServer

func NewServer(
	extractor extractor.Extractor,
) (*NpvizServer, error)

NewServer creates server and configures its routes

func (*NpvizServer) Listen

func (bs *NpvizServer) Listen(port uint)

Listen starts the HTTP server

Jump to

Keyboard shortcuts

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