Documentation ¶
Index ¶
- Constants
- type Config
- type DiskKV
- func (d *DiskKV) Acquire(ctx context.Context, lease []byte, ttl time.Duration) (token uint64, err error)
- func (d *DiskKV) Delete(ctx context.Context, key []byte) error
- func (d *DiskKV) Export(keys [][]byte) []*protocol.KVTransfer
- func (d *DiskKV) Get(ctx context.Context, key []byte) (value []byte, err error)
- func (d *DiskKV) Import(ctx context.Context, keys [][]byte, values []*protocol.KVTransfer) error
- func (d *DiskKV) ListKeys(ctx context.Context, prefix []byte) ([]*protocol.KeyComposite, error)
- func (d *DiskKV) PrefixAppend(ctx context.Context, prefix []byte, child []byte) error
- func (d *DiskKV) PrefixContains(ctx context.Context, prefix []byte, child []byte) (bool, error)
- func (d *DiskKV) PrefixList(ctx context.Context, prefix []byte) (children [][]byte, err error)
- func (d *DiskKV) PrefixRemove(ctx context.Context, prefix []byte, child []byte) error
- func (d *DiskKV) Put(ctx context.Context, key []byte, value []byte) error
- func (d *DiskKV) RangeKeys(low, high uint64) [][]byte
- func (d *DiskKV) Release(ctx context.Context, lease []byte, token uint64) error
- func (d *DiskKV) RemoveKeys(keys [][]byte)
- func (d *DiskKV) Renew(ctx context.Context, lease []byte, ttl time.Duration, prevToken uint64) (newToken uint64, err error)
- func (d *DiskKV) Start()
- func (d *DiskKV) Stop()
Constants ¶
View Source
const (
LogDir = "wal"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskKV ¶
type DiskKV struct {
// contains filtered or unexported fields
}
func (*DiskKV) PrefixAppend ¶
func (*DiskKV) PrefixContains ¶
func (*DiskKV) PrefixList ¶
func (*DiskKV) PrefixRemove ¶
func (*DiskKV) RemoveKeys ¶
Click to show internal directories.
Click to hide internal directories.