From 6176bcff6977bda71f4fde10a52dde6d7d7ceb9a Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 27 Nov 2017 17:23:35 -0500 Subject: PLT-8131 (part2) Add plugin key value store support (#7902) * Add plugin key value store support * Add localization strings * Updates per feedback --- store/store.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'store/store.go') diff --git a/store/store.go b/store/store.go index eada8f395..7997000ec 100644 --- a/store/store.go +++ b/store/store.go @@ -63,6 +63,7 @@ type Store interface { Reaction() ReactionStore Job() JobStore UserAccessToken() UserAccessTokenStore + Plugin() PluginStore MarkSystemRanUnitTests() Close() DropAllTables() @@ -440,3 +441,9 @@ type UserAccessTokenStore interface { UpdateTokenEnable(tokenId string) StoreChannel UpdateTokenDisable(tokenId string) StoreChannel } + +type PluginStore interface { + SaveOrUpdate(keyVal *model.PluginKeyValue) StoreChannel + Get(pluginId, key string) StoreChannel + Delete(pluginId, key string) StoreChannel +} -- cgit v1.2.3-1-g7c22