kvsia

package
v0.0.0-...-bb586a6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KvSia

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

func New

func New(f *files.Files) (*KvSia, error)

func (*KvSia) Delete

func (k *KvSia) Delete(key string) (metadata []byte, err error)

func (*KvSia) Get

func (k *KvSia) Get(key string) ([]byte, []byte, error)

func (*KvSia) GetAt

func (k *KvSia) GetAt(key string, offset, size int) ([]byte, []byte, error)

func (*KvSia) Has

func (k *KvSia) Has(key string) (bool, []byte, error)
func (k *KvSia) Link(dstKey, srcKey string, metadata []byte) error

func (*KvSia) List

func (k *KvSia) List() (map[string]int, error)

func (*KvSia) Put

func (k *KvSia) Put(key string, value, metadata []byte) error

func (*KvSia) Sync

func (k *KvSia) Sync() error

Jump to

Keyboard shortcuts

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