diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-05-15 13:33:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-15 13:33:47 -0700 |
commit | df6a7f8b19e2381ee57f946d5b184185653b2ee1 (patch) | |
tree | 622ff6b13b23bf4506ea41eb010141930e143815 /plugin/plugintest/apioverride.go | |
parent | fbbe1f7cefd52a27fd52893509b5365d275f9bee (diff) | |
download | chat-df6a7f8b19e2381ee57f946d5b184185653b2ee1.tar.gz chat-df6a7f8b19e2381ee57f946d5b184185653b2ee1.tar.bz2 chat-df6a7f8b19e2381ee57f946d5b184185653b2ee1.zip |
MM-10249 Adding plugin ability to intercept posts before they reach the DB. (#8791)
* Adding plugin ability to intercept posts before they reach the DB.
* s/envoked/invoked/
Diffstat (limited to 'plugin/plugintest/apioverride.go')
-rw-r--r-- | plugin/plugintest/apioverride.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugin/plugintest/apioverride.go b/plugin/plugintest/apioverride.go new file mode 100644 index 000000000..54cfe27bc --- /dev/null +++ b/plugin/plugintest/apioverride.go @@ -0,0 +1,18 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + +package plugintest + +import "github.com/mattermost/mattermost-server/plugin" + +type API struct { + APIMOCKINTERNAL + Store *KeyValueStore +} + +var _ plugin.API = (*API)(nil) +var _ plugin.KeyValueStore = (*KeyValueStore)(nil) + +func (m *API) KeyValueStore() plugin.KeyValueStore { + return m.Store +} |