kvdebug

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct {
	KV kv.KV
	// contains filtered or unexported fields
}

func New

func New(kv kv.KV) *KV

func (*KV) Close

func (d *KV) Close() error

func (*KV) Log

func (d *KV) Log(v bool)

func (*KV) Stats

func (d *KV) Stats() Stats

func (*KV) Tx

func (d *KV) Tx(rw bool) (kv.Tx, error)

func (*KV) Update

func (d *KV) Update(ctx context.Context, fn func(tx kv.Tx) error) error

func (*KV) View

func (d *KV) View(ctx context.Context, fn func(tx kv.Tx) error) error

type Stats

type Stats struct {
	Errs int64
	Tx   struct {
		RO int64
		RW int64
	}
	Get struct {
		N     int64
		Batch int64
		Miss  int64
	}
	Put struct {
		N int64
	}
	Del struct {
		N int64
	}
	Iter struct {
		N    int64
		Next int64
		K, V int64
	}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL