Documentation ¶
Overview ¶
Package mount provides a Datastore that has other Datastores mounted at various key prefixes and is threadsafe
Index ¶
- Variables
- type Datastore
- func (d *Datastore) Batch() (ds.Batch, error)
- func (d *Datastore) Close() error
- func (d *Datastore) Delete(key ds.Key) error
- func (d *Datastore) Get(key ds.Key) (value interface{}, err error)
- func (d *Datastore) Has(key ds.Key) (exists bool, err error)
- func (d *Datastore) IsThreadSafe()
- func (d *Datastore) Put(key ds.Key, value interface{}) error
- func (d *Datastore) Query(q query.Query) (query.Results, error)
- type Mount
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 (*Datastore) IsThreadSafe ¶
func (d *Datastore) IsThreadSafe()
Click to show internal directories.
Click to hide internal directories.