kv

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVModule

type KVModule struct {
	// contains filtered or unexported fields
}

KVModule provides key-value storage per VM instance

func NewKVModule

func NewKVModule() *KVModule

NewKVModule creates a new KV module with isolated storage

func (*KVModule) Cleanup

func (kv *KVModule) Cleanup() error

Cleanup performs any necessary cleanup

func (*KVModule) CreateGlobalObject

func (kv *KVModule) CreateGlobalObject(runtime *sobek.Runtime) sobek.Value

CreateGlobalObject creates the kv object for global access

func (*KVModule) GetGlobalName

func (kv *KVModule) GetGlobalName() string

GetGlobalName returns the global name for this module

func (*KVModule) IsEnabled

func (kv *KVModule) IsEnabled(enabledModules map[string]bool) bool

IsEnabled checks if the module should be enabled based on configuration

func (*KVModule) Name

func (kv *KVModule) Name() string

Name returns the module name

func (*KVModule) Setup

func (kv *KVModule) Setup(runtime *sobek.Runtime, manager *vm.VMManager) error

Setup initializes the KV module in the VM

Jump to

Keyboard shortcuts

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