storage

package
v5.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScopedPersistentStorage

type ScopedPersistentStorage interface {
	ScopedPersistentStorageEngine()
	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)
	Clear(ctx context.Context)
	NarrowScope(ctx context.Context, key []byte) (ScopedPersistentStorage, error)
	DropScope(ctx context.Context, key []byte) error
}

type ScopedTransientStorage

type ScopedTransientStorage interface {
	ScopedTransientStorage()
	Put(ctx context.Context, key string, value interface{}) error
	Get(ctx context.Context, key string) (interface{}, error)
	List(ctx context.Context, keyPrefix string) ([]string, error)
	Clear(ctx context.Context)
	NarrowScope(ctx context.Context, key string) (ScopedTransientStorage, error)
	DropScope(ctx context.Context, key string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL