server

package
v0.4.3-RC3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ListenPort defines the port in which the server listens to
	ListenPort  string = ":9090"
	MetricsPath string = "/metrics"
)

Functions

func MetricsMiddleware

func MetricsMiddleware(prometheusHandler http.Handler) http.Handler

MetricsMiddleware is middleware for prometheus

func StartHttpServer

func StartHttpServer() error

StartHttpServer boots up the server that runs on the specified port. Returns an error if there is no connection established.

Types

This section is empty.

Jump to

Keyboard shortcuts

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