Versions in this module Expand all Collapse all v0 v0.0.3 Sep 18, 2023 v0.0.2 Sep 18, 2023 Changes in this version + const BucketExistsError + const BucketNotFoundError + const DatabaseAlreadyOpenError + const DatabaseNotOpenError + const DefaultKvBucket + const DefaultKvPath + const KeyNotFoundError + const KeyRequiredError + const KeyTooLargeError + const ValueTooLargeError + var ErrStop = errors.New("stop") + type Error struct + Message string + Name ErrorName + func NewError(name ErrorName, message string) *Error + func (e *Error) Error() string + type ErrorName string + type KV struct + func NewKV(vu modules.VU, db *db) *KV + func (k *KV) Clear() *goja.Promise + func (k *KV) Close() error + func (k *KV) Delete(key goja.Value) *goja.Promise + func (k *KV) Get(key goja.Value) *goja.Promise + func (k *KV) List(options goja.Value) *goja.Promise + func (k *KV) Set(key goja.Value, value goja.Value) *goja.Promise + func (k *KV) Size() *goja.Promise + type ListEntry struct + Key string + Value any + type ListOptions struct + Limit int64 + Prefix string + func ImportListOptions(rt *goja.Runtime, options goja.Value) ListOptions + type ModuleInstance struct + func (mi *ModuleInstance) Exports() modules.Exports + func (mi *ModuleInstance) NewKV(_ goja.ConstructorCall) *goja.Object + func (mi *ModuleInstance) OpenKv() *goja.Object + type RootModule struct + func New() *RootModule + func (rm *RootModule) NewModuleInstance(vu modules.VU) modules.Instance