diff options
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go index c4230860f..b85160940 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -196,6 +196,9 @@ type API interface { // KVDelete will remove a key-value pair. Returns nil for non-existent keys. KVDelete(key string) *model.AppError + // KVList will list all keys for a plugin. + KVList(page, perPage int) ([]string, *model.AppError) + // PublishWebSocketEvent sends an event to WebSocket connections. // event is the type and will be prepended with "custom_<pluginid>_" // payload is the data sent with the event. Interface values must be primitive Go types or mattermost-server/model types |