mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
16 lines
349 B
Go
16 lines
349 B
Go
package extension
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/v2fly/v2ray-core/v5/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)
|
|
}
|