Documentation ¶
Index ¶
- Variables
- func Register(constructor KVConstructor, matcher Matcher)
- type KV
- type KVConstructor
- type KVManager
- type KVMapper
- func (m *KVMapper) Delete(key string) bool
- func (m *KVMapper) Get(key string) goja.Value
- func (m *KVMapper) Has(key string) bool
- func (m *KVMapper) Keys() []string
- func (m *KVMapper) NativeObject() goja.Value
- func (m *KVMapper) Reset()
- func (m *KVMapper) Set(key string, val goja.Value) bool
- func (m *KVMapper) WithIOContext(t *common.IOContext)
- type Matcher
- type NativeKVProxy
- func (kv *NativeKVProxy) Delete(key string) bool
- func (kv *NativeKVProxy) Get(key string) goja.Value
- func (kv *NativeKVProxy) Has(key string) bool
- func (kv *NativeKVProxy) Keys() []string
- func (kv *NativeKVProxy) NativeObject() goja.Value
- func (kv *NativeKVProxy) Set(key string, val goja.Value) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = fmt.Errorf("kv: not found") ErrBackingNotFound = fmt.Errorf("kv: backing not found") )
Functions ¶
func Register ¶
func Register(constructor KVConstructor, matcher Matcher)
Types ¶
type KVConstructor ¶
type KVManager ¶
type KVManager struct {
// contains filtered or unexported fields
}
func NewKVManager ¶
func NewKVManager() *KVManager
type KVMapper ¶
type KVMapper struct {
// contains filtered or unexported fields
}
func (*KVMapper) NativeObject ¶
func (*KVMapper) WithIOContext ¶
type NativeKVProxy ¶
type NativeKVProxy struct {
// contains filtered or unexported fields
}
func (*NativeKVProxy) Delete ¶
func (kv *NativeKVProxy) Delete(key string) bool
func (*NativeKVProxy) Has ¶
func (kv *NativeKVProxy) Has(key string) bool
func (*NativeKVProxy) Keys ¶
func (kv *NativeKVProxy) Keys() []string
func (*NativeKVProxy) NativeObject ¶
func (kv *NativeKVProxy) NativeObject() goja.Value
Click to show internal directories.
Click to hide internal directories.