Documentation ¶
Index ¶
- type DummyMap
- func (*DummyMap) Close() error
- func (*DummyMap) CopyDeltaFromOldMap() error
- func (*DummyMap) Delete(k []byte) error
- func (*DummyMap) EnsureExists() error
- func (*DummyMap) ErrIsNotExists(err error) bool
- func (*DummyMap) Get(k []byte) ([]byte, error)
- func (*DummyMap) GetName() string
- func (*DummyMap) Iter(_ maps.IterCallback) error
- func (*DummyMap) MapFD() maps.FD
- func (*DummyMap) Open() error
- func (*DummyMap) Path() string
- func (*DummyMap) Update(k, v []byte) error
- type Map
- func (m *Map) Close() error
- func (m *Map) ContainsKV(k, v []byte) bool
- func (m *Map) ContainsKey(k []byte) bool
- func (m *Map) CopyDeltaFromOldMap() error
- func (m *Map) Delete(k []byte) error
- func (m *Map) DeleteIfExists(k []byte) error
- func (m *Map) EnsureExists() error
- func (*Map) ErrIsNotExists(err error) bool
- func (m *Map) Get(k []byte) ([]byte, error)
- func (m *Map) GetName() string
- func (m *Map) IsEmpty() bool
- func (m *Map) Iter(f maps.IterCallback) error
- func (m *Map) MapFD() maps.FD
- func (m *Map) OpCount() int
- func (m *Map) Open() error
- func (m *Map) Path() string
- func (m *Map) Update(k, v []byte) error
- func (m *Map) UpdateWithFlags(k, v []byte, flags int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyMap ¶
type DummyMap struct{}
func (*DummyMap) CopyDeltaFromOldMap ¶
func (*DummyMap) EnsureExists ¶
func (*DummyMap) ErrIsNotExists ¶
type Map ¶
type Map struct { sync.Mutex maps.MapParameters Contents map[string]string UpdateCount int GetCount int DeleteCount int IterCount int IterErr error UpdateErr error DeleteErr error // contains filtered or unexported fields }
func NewMockMap ¶
func NewMockMap(params maps.MapParameters) *Map
func (*Map) ContainsKV ¶
func (*Map) ContainsKey ¶
func (*Map) CopyDeltaFromOldMap ¶
func (*Map) DeleteIfExists ¶
func (*Map) EnsureExists ¶
func (*Map) ErrIsNotExists ¶
Click to show internal directories.
Click to hide internal directories.