store

package
v0.0.0-...-3e71865 Latest Latest
Warning

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

Go to latest
Published: May 21, 2014 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

A key-value store based on leveldb. Uses uint64 for keys.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyNotFound = errors.New("key not found")
)

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(fn string) (*Store, error)

Open or create a datastore using with the given filename.

func (*Store) Close

func (store *Store) Close()

func (*Store) Get

func (store *Store) Get(key uint64) (value interface{}, err error)

func (*Store) GetInt32

func (store *Store) GetInt32(key uint64) (int32, error)

func (*Store) Put

func (store *Store) Put(key uint64, value interface{}) error

func (*Store) PutInt32

func (store *Store) PutInt32(key uint64, value int32) error

Jump to

Keyboard shortcuts

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