Documentation
¶
Index ¶
- Constants
- Variables
- type Memory
- func (m *Memory) Clean() error
- func (m *Memory) Close() error
- func (m *Memory) Delete(key []byte, cb callback.Callback[any])
- func (m *Memory) DeleteAll(parentKey []byte, cb callback.Callback[any])
- func (m *Memory) Get(key []byte, cb callback.Callback[*proto.Meta])
- func (m *Memory) ListChildren(parentKey []byte, callback callback.Callback[[]string])
- func (m *Memory) Notification() <-chan *proto.MetaNotification
- func (m *Memory) Put(key []byte, value []byte, ephemeral bool, ...)
- func (m *Memory) Swap(key []byte, value []byte, ephemeral bool, expectVersion int64, ...)
- type Metadata
- type Options
Constants ¶
View Source
const (
NameMemory = "memory"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Memory ¶
func (*Memory) ListChildren ¶
func (*Memory) Notification ¶
func (m *Memory) Notification() <-chan *proto.MetaNotification
type Metadata ¶
type Metadata interface {
io.Closer
lifecycle.Cleanup
Put(key []byte, value []byte, ephemeral bool, cb callback.Callback[*proto.MetaInfo])
Swap(key []byte, value []byte, ephemeral bool, expectVersion int64, cb callback.Callback[*proto.MetaInfo])
Get(key []byte, cb callback.Callback[*proto.Meta])
Delete(key []byte, cb callback.Callback[any])
ListChildren(parentKey []byte, cb callback.Callback[[]string])
DeleteAll(parentKey []byte, cb callback.Callback[any])
Notification() <-chan *proto.MetaNotification
}
func NewMemoryMetadata ¶
Click to show internal directories.
Click to hide internal directories.