Expvar metrics support added. Metrics refactored to its own package.

This commit is contained in:
Musab Gültekin
2019-06-21 21:37:25 +03:00
parent 88c4b1dd35
commit 7bc782400c
9 changed files with 84 additions and 40 deletions

View File

@ -2,6 +2,7 @@ package geziyor
import (
"github.com/fpfeng/httpcache"
"github.com/geziyor/geziyor/metrics"
"time"
)
@ -67,4 +68,6 @@ type Options struct {
// If set true, cookies won't send.
CookiesDisabled bool
MetricsType metrics.Type
}