Documentation
¶
Index ¶
- type Backend
- type Builder
- type Iterator
- type MockBackend
- func (*MockBackend) Close() error
- func (b *MockBackend) Delete(key []byte) error
- func (*MockBackend) Destroy() error
- func (b *MockBackend) Get(key []byte) ([]byte, error)
- func (*MockBackend) Iterator() Iterator
- func (b *MockBackend) Name() string
- func (b *MockBackend) Persistent() bool
- func (b *MockBackend) RangeIterator(fromKy []byte, toKey []byte) Iterator
- func (b *MockBackend) Set(key []byte, value []byte, expiry time.Duration) error
- func (b *MockBackend) SetExpiry(time time.Duration)
- func (b *MockBackend) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
Name() string
Set(key []byte, value []byte, expiry time.Duration) error
Get(key []byte) ([]byte, error)
RangeIterator(fromKy []byte, toKey []byte) Iterator
Iterator() Iterator
Delete(key []byte) error
SetExpiry(time time.Duration)
String() string
Persistent() bool
Close() error
Destroy() error
}
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
func (*MockBackend) Close ¶
func (*MockBackend) Close() error
func (*MockBackend) Delete ¶
func (b *MockBackend) Delete(key []byte) error
func (*MockBackend) Destroy ¶
func (*MockBackend) Destroy() error
func (*MockBackend) Iterator ¶
func (*MockBackend) Iterator() Iterator
func (*MockBackend) Name ¶
func (b *MockBackend) Name() string
func (*MockBackend) Persistent ¶
func (b *MockBackend) Persistent() bool
func (*MockBackend) RangeIterator ¶
func (b *MockBackend) RangeIterator(fromKy []byte, toKey []byte) Iterator
func (*MockBackend) SetExpiry ¶
func (b *MockBackend) SetExpiry(time time.Duration)
func (*MockBackend) String ¶
func (b *MockBackend) String() string
Click to show internal directories.
Click to hide internal directories.