18 строки
418 B
Go
18 строки
418 B
Go
package common
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/mattermost/mattermost/server/public/pluginapi"
|
|
)
|
|
|
|
var ErrNotFound = errors.New("not found")
|
|
|
|
type KVStore interface {
|
|
Set(key string, value interface{}, options ...pluginapi.KVSetOption) (bool, error)
|
|
Get(key string, o interface{}) error
|
|
Delete(key string) error
|
|
DeleteAll() error
|
|
ListKeys(page, count int, options ...pluginapi.ListKeysOption) ([]string, error)
|
|
}
|