summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorAdrian Carolli <adrian.caarolli@gmail.com>2018-01-05 14:46:48 -0500
committerJoram Wilander <jwawilander@gmail.com>2018-01-05 14:46:48 -0500
commitfd3fa8f8dcfa5de42a16db9b62e1d6628f43b0fd (patch)
treef60a1d693dc554dddfc9a365e53420359be932a1 /store/store.go
parent66bdf830b5c7bc2e2fe7598355a142720010de91 (diff)
downloadchat-fd3fa8f8dcfa5de42a16db9b62e1d6628f43b0fd.tar.gz
chat-fd3fa8f8dcfa5de42a16db9b62e1d6628f43b0fd.tar.bz2
chat-fd3fa8f8dcfa5de42a16db9b62e1d6628f43b0fd.zip
[PLT-7793] Added /users/tokens endpoint (#8038)
* Added /users/tokens/all endpoint - UserAccessStore now has getAll method - Added tests - Added route - Added handler * Remove space fix check-style * Remove blank space check-style * Fixes for make check-style * Remove extra code that is un-needed in user_test.go * Rename endpoint + grammar - Renamed /users/tokens/all to /users/tokens - Renamed getUserAccessTokens to getUserAccessTokensForUser - Renamed getAllUserAccessTokens to getUserAccessTokens - Minor Grammar changes * Add localization for sql_user_access_token.get_all * Fix minor plural spelling
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 6ca07c294..de8bd4635 100644
--- a/store/store.go
+++ b/store/store.go
@@ -446,6 +446,7 @@ type UserAccessTokenStore interface {
Delete(tokenId string) StoreChannel
DeleteAllForUser(userId string) StoreChannel
Get(tokenId string) StoreChannel
+ GetAll(offset int, limit int) StoreChannel
GetByToken(tokenString string) StoreChannel
GetByUser(userId string, page, perPage int) StoreChannel
UpdateTokenEnable(tokenId string) StoreChannel