summaryrefslogtreecommitdiffstats
path: root/model/client.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-10-31 17:36:41 -0400
committerChristopher Speller <crspeller@gmail.com>2017-10-31 14:36:41 -0700
commit23e4b4a27d915191dc4f1164c86e26651b379a11 (patch)
tree3bf51e73047bae7666ff73e534ccad3140463d24 /model/client.go
parent709ef99eca0353585eb00c795cc36f39bac29a1f (diff)
downloadchat-23e4b4a27d915191dc4f1164c86e26651b379a11.tar.gz
chat-23e4b4a27d915191dc4f1164c86e26651b379a11.tar.bz2
chat-23e4b4a27d915191dc4f1164c86e26651b379a11.zip
PLT-7810 Track if an APIv3 endpoint was used in the last day (#7744)
* Track if an APIv3 endpoint was used in the last day * Make it atomic
Diffstat (limited to 'model/client.go')
-rw-r--r--model/client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/model/client.go b/model/client.go
index 37f014e6b..ef890b593 100644
--- a/model/client.go
+++ b/model/client.go
@@ -18,6 +18,8 @@ import (
l4g "github.com/alecthomas/log4go"
)
+var UsedApiV3 *int32 = new(int32)
+
const (
HEADER_REQUEST_ID = "X-Request-ID"
HEADER_VERSION_ID = "X-Version-ID"