Documentation
¶
Index ¶
- type KV
- type KeyAndValue
- type Read
- type Tikv
- type TikvRead
- func (r *TikvRead) BatchGet(ctx context.Context, keys [][]byte) (map[string][]byte, error)
- func (r *TikvRead) Close()
- func (r *TikvRead) Get(ctx context.Context, key []byte) ([]byte, error)
- func (r *TikvRead) Iter(ctx context.Context, start []byte, end []byte) iter.Seq2[KeyAndValue, error]
- func (r *TikvRead) SetKeyOnly(b bool)
- type TikvWrite
- func (r *TikvWrite) BatchGet(ctx context.Context, keys [][]byte) (map[string][]byte, error)
- func (r *TikvWrite) Close()
- func (w *TikvWrite) Commit(ctx context.Context) error
- func (w *TikvWrite) Del(key []byte) error
- func (w *TikvWrite) Get(ctx context.Context, key []byte) ([]byte, error)
- func (r *TikvWrite) Iter(ctx context.Context, start []byte, end []byte) iter.Seq2[KeyAndValue, error]
- func (w *TikvWrite) Put(key []byte, value []byte) error
- func (w *TikvWrite) Rollback() error
- func (w *TikvWrite) Stat() (statLockRetries int)
- type Write
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KV ¶
type KeyAndValue ¶
type Tikv ¶
type Tikv struct {
// contains filtered or unexported fields
}
func (*Tikv) ExclusiveWrite ¶ added in v0.0.19
type TikvRead ¶
type TikvRead struct {
// contains filtered or unexported fields
}
func (*TikvRead) SetKeyOnly ¶
Click to show internal directories.
Click to hide internal directories.