mount

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mount provides a Datastore that has other Datastores mounted at various key prefixes.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMount = errors.New("no datastore mounted for this key")
)

Functions

This section is empty.

Types

type Datastore

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

func New

func New(mounts []Mount) *Datastore

func (*Datastore) Batch added in v0.3.6

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

func (*Datastore) Close added in v0.3.8

func (d *Datastore) Close() error

func (*Datastore) Delete

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

func (*Datastore) Get

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

func (*Datastore) Has

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

func (*Datastore) Put

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

func (*Datastore) Query

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

type Mount

type Mount struct {
	Prefix    datastore.Key
	Datastore datastore.Datastore
}

Jump to

Keyboard shortcuts

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