Versions in this module Expand all Collapse all v0 v0.1.1 Jan 29, 2018 Changes in this version + const HTTPServerShutdownTimeout + type ExporterService struct + func NewExporterService(ctx context.Context, interval int, ...) *ExporterService + func (es *ExporterService) Run() error + type HTTPServer struct + func (hs *HTTPServer) ListenAndServe() error + func (hs *HTTPServer) SetAddr(addr string) + func (hs *HTTPServer) SetContext(ctx context.Context) + func (hs *HTTPServer) SetHandler(handler http.Handler) + type HTTPServerInterface interface + ListenAndServe func() error + SetAddr func(string) + SetContext func(context.Context) + SetHandler func(http.Handler) + type MetricsService struct + func NewMetricsService(ctx context.Context, listenAddr string, wg *sync.WaitGroup) *MetricsService + func (ms *MetricsService) MustRegisterPrometheusCollector(cs ...prometheus.Collector) + func (ms *MetricsService) StartServer() error + type MockHTTPServerInterface struct + func (_m *MockHTTPServerInterface) ListenAndServe() error + func (_m *MockHTTPServerInterface) SetAddr(_a0 string) + func (_m *MockHTTPServerInterface) SetContext(_a0 context.Context) + func (_m *MockHTTPServerInterface) SetHandler(_a0 http.Handler)