mount

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2015 License: MIT, MIT Imports: 5 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) 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