httpserver

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthMux

func NewHealthMux(handlers map[string]http.Handler) *http.ServeMux

NewHealthMux makes a new *http.ServeMux

Types

type HTTPServer

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

HTTPServer is the object wrapper for OSM's HTTP server class

func NewHTTPServer

func NewHTTPServer(probes []health.Probes, httpProbes []health.HTTPProbe, metricStore metricsstore.MetricStore, apiPort int32, debugServer debugger.DebugServer) *HTTPServer

NewHTTPServer creates a new API server

func (*HTTPServer) Start

func (s *HTTPServer) Start()

Start runs the Serve operations for the http.server on a separate go routine context

func (*HTTPServer) Stop

func (s *HTTPServer) Stop() error

Stop halts the http.server

Jump to

Keyboard shortcuts

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