Files
mostlymatter/server/public/pluginapi/experimental/common/kvstore.go
2024-03-01 12:12:52 +01:00

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)
}