httpserver

package
v0.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 13 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

func RegisterDebugServer added in v0.6.0

func RegisterDebugServer(dbgServerInterface DebugServerInterface, cfg configurator.Configurator)

RegisterDebugServer registers a go routine to listen to configuration and configure debug server as needed

Types

type DebugServer added in v0.6.0

type DebugServer struct {
	Server *http.Server
}

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

func (*DebugServer) Start added in v0.6.0

func (d *DebugServer) Start()

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

func (*DebugServer) Stop added in v0.6.0

func (d *DebugServer) Stop() error

Stop halts the DebugServer http.server

type DebugServerInterface added in v0.6.0

type DebugServerInterface interface {
	Stop() error
	Start()
}

DebugServerInterface is the interface of the Debug HTTP server.

func NewDebugHTTPServer added in v0.6.0

func NewDebugHTTPServer(debugServer debugger.DebugConfig, apiPort int32) DebugServerInterface

NewDebugHTTPServer creates a new API Server for Debug

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) *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