flatfs

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2015 License: MIT, MIT Imports: 11 Imported by: 0

Documentation

Overview

Package flatfs is a Datastore implementation that stores all objects in a two-level directory structure in the local file system, regardless of the hierarchy of the keys.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadPrefixLen = errors.New("bad prefix length")
)

Functions

This section is empty.

Types

type Datastore

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

func New

func New(path string, prefixLen int) (*Datastore, error)

func (*Datastore) Batch added in v0.3.6

func (fs *Datastore) Batch() (datastore.Batch, error)

func (*Datastore) Close added in v0.3.8

func (fs *Datastore) Close() error

func (*Datastore) Delete

func (fs *Datastore) Delete(key datastore.Key) error

func (*Datastore) Get

func (fs *Datastore) Get(key datastore.Key) (value interface{}, err error)

func (*Datastore) Has

func (fs *Datastore) Has(key datastore.Key) (exists bool, err error)

func (*Datastore) IsThreadSafe

func (*Datastore) IsThreadSafe()

func (*Datastore) Put

func (fs *Datastore) Put(key datastore.Key, value interface{}) error

func (*Datastore) Query

func (fs *Datastore) Query(q query.Query) (query.Results, error)

Jump to

Keyboard shortcuts

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