server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(port string, timeout time.Duration, stopCh <-chan struct{})

Types

type Instrument

type Instrument struct {
	Histogram *prometheus.HistogramVec
	Counter   *prometheus.CounterVec
}

func NewInstrument

func NewInstrument() *Instrument

func (Instrument) Wrap

func (i Instrument) Wrap(next http.Handler) http.Handler

type Response

type Response struct {
	Runtime     map[string]string `json:"runtime" yaml:"runtime"`
	Labels      map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
	Environment map[string]string `json:"environment" yaml:"environment"`
}

type Server

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

func NewServer

func NewServer(options ...func(*Server)) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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