diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-10-31 17:36:41 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-10-31 14:36:41 -0700 |
commit | 23e4b4a27d915191dc4f1164c86e26651b379a11 (patch) | |
tree | 3bf51e73047bae7666ff73e534ccad3140463d24 /model/client.go | |
parent | 709ef99eca0353585eb00c795cc36f39bac29a1f (diff) | |
download | chat-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.go | 2 |
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" |