Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHealthMux ¶
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
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
Click to show internal directories.
Click to hide internal directories.