summaryrefslogtreecommitdiffstats
path: root/einterfaces/metrics.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-12-19 10:16:22 -0500
committerGitHub <noreply@github.com>2016-12-19 10:16:22 -0500
commitf96173528f08684092b89f903f0389fe2b607192 (patch)
treef34f9057417ad6758cd65dc246bc764530f2134c /einterfaces/metrics.go
parent6a5cdd5cdf09317ce259dd146fc4f1cb76d8b9b6 (diff)
downloadchat-f96173528f08684092b89f903f0389fe2b607192.tar.gz
chat-f96173528f08684092b89f903f0389fe2b607192.tar.bz2
chat-f96173528f08684092b89f903f0389fe2b607192.zip
Adding metrics for caching mechanisms (#4828)
Diffstat (limited to 'einterfaces/metrics.go')
-rw-r--r--einterfaces/metrics.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/einterfaces/metrics.go b/einterfaces/metrics.go
index 192639e02..c4ec9dccf 100644
--- a/einterfaces/metrics.go
+++ b/einterfaces/metrics.go
@@ -19,6 +19,12 @@ type MetricsInterface interface {
IncrementLogin()
IncrementLoginFail()
+
+ IncrementEtagHitCounter(route string)
+ IncrementEtagMissCounter(route string)
+
+ IncrementMemCacheHitCounter(cacheName string)
+ IncrementMemCacheMissCounter(cacheName string)
}
var theMetricsInterface MetricsInterface