* Add KVList method

* Add KVList method

Add KVList method

* Add pagination support

* Change offset, limit to page, perPage

* Rename constant
Этот коммит содержится в:
Shobhit Gupta
2018-10-03 13:04:37 -07:00
коммит произвёл Joram Wilander
родитель 7468f35cb0
Коммит 8c03e584c1
9 изменённых файлов: 156 добавлений и 0 удалений

Просмотреть файл

@@ -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