1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/features/extension/storage.go
2021-10-28 18:34:19 +08:00

17 lines
350 B
Go

package extension
import (
"context"
"github.com/v2fly/v2ray-core/v4/features"
)
type PersistentStorageEngine interface {
features.Feature
PersistentStorageEngine()
Put(ctx context.Context, key []byte, value []byte) error
Get(ctx context.Context, key []byte) ([]byte, error)
List(ctx context.Context, keyPrefix []byte) ([][]byte, error)
}