kvdb

package
v0.0.0-...-073a371 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = 1024
	MB = 1024 * KB
	GB = 1024 * MB
	TB = 1024 * GB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IoSegment

type IoSegment struct {
	// contains filtered or unexported fields
}

type IoSegmentInfo

type IoSegmentInfo struct {
	// contains filtered or unexported fields
}

type IoStats

type IoStats struct {
	// contains filtered or unexported fields
}

func NewIoStats

func NewIoStats() *IoStats

func (*IoStats) BufferHit

func (s *IoStats) BufferHit()

func (*IoStats) BufferHitRate

func (s *IoStats) BufferHitRate() float64

func (*IoStats) Close

func (s *IoStats) Close()

func (*IoStats) RamHit

func (s *IoStats) RamHit()

func (*IoStats) RamHitRate

func (s *IoStats) RamHitRate() float64

func (*IoStats) ReadTimeRecord

func (s *IoStats) ReadTimeRecord(d time.Duration)

func (*IoStats) SegmentReadTimeRecord

func (s *IoStats) SegmentReadTimeRecord(d time.Duration)

func (*IoStats) SegmentSkipped

func (s *IoStats) SegmentSkipped()

func (*IoStats) StorageHit

func (s *IoStats) StorageHit()

func (*IoStats) String

func (s *IoStats) String() string

func (*IoStats) Wrapped

func (s *IoStats) Wrapped()

func (*IoStats) WriteTimeRecord

func (s *IoStats) WriteTimeRecord(d time.Duration)

type KVBoltDB

type KVBoltDB struct {
	// contains filtered or unexported fields
}

func NewKVBoltDB

func NewKVBoltDB(dbpath string) *KVBoltDB

func (*KVBoltDB) Close

func (c *KVBoltDB) Close()

func (*KVBoltDB) Delete

func (c *KVBoltDB) Delete(key []byte, index uint64) (err error)

func (*KVBoltDB) Get

func (c *KVBoltDB) Get(key, val []byte, index uint64) (err error)

func (*KVBoltDB) Put

func (c *KVBoltDB) Put(key, val []byte, index uint64) (err error)

func (*KVBoltDB) String

func (c *KVBoltDB) String() string

type KVIoDB

type KVIoDB struct {
	// contains filtered or unexported fields
}

func NewKVIoDB

func NewKVIoDB(dbpath string, blocks, bcsize uint64, blocksize uint32) *KVIoDB

func (*KVIoDB) Close

func (c *KVIoDB) Close()

func (*KVIoDB) Delete

func (c *KVIoDB) Delete(key []byte, index uint64) error

func (*KVIoDB) Get

func (c *KVIoDB) Get(key, val []byte, index uint64) error

func (*KVIoDB) Put

func (c *KVIoDB) Put(key, val []byte, index uint64) error

func (*KVIoDB) String

func (c *KVIoDB) String() string

type Kvdb

type Kvdb interface {
	Close()
	Put(key, val []byte, index uint64) error
	Get(key, val []byte, index uint64) error
	Delete(key []byte, index uint64) error
	String() string
}

Jump to

Keyboard shortcuts

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