httpsvc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Server
	*prometheus.Registry
}

Metrics represents a Metrics server which can be used to expose a prometheus metrics.

func (*Metrics) Start

func (s *Metrics) Start(stopCh <-chan struct{}) error

Start starts the Health Server.

type Server

type Server struct {
	http.ServeMux

	Addr string
	Port int
}

Server is a wrapper around a http.ServeMux which sets up necessary endpoints to run our operator.

func (*Server) Start

func (s *Server) Start(stopCh <-chan struct{}) error

Start starts the HTTP Server.

Jump to

Keyboard shortcuts

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