Refactor StatsRecorder

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-12-06 15:44:25 +01:00
parent 6adb346cee
commit 3ebfd729cf
No known key found for this signature in database
GPG key ID: D808B4C167352E59
3 changed files with 11 additions and 6 deletions

4
web.go
View file

@ -23,7 +23,7 @@ import (
var (
metrics = thoas_stats.New()
statsRecorder *StatsRecorder
statsRecorder *middlewares.StatsRecorder
)
// WebProvider is a provider.Provider implementation that provides the UI.
@ -141,7 +141,7 @@ func (provider *WebProvider) Provide(configurationChan chan<- types.ConfigMessag
// they are enabled).
type healthResponse struct {
*thoas_stats.Data
*Stats
*middlewares.Stats
}
func (provider *WebProvider) getHealthHandler(response http.ResponseWriter, request *http.Request) {