Documentation ¶
Index ¶
- func MutexWrap(d ds.Datastore) ds.ThreadSafeDatastore
- type MutexDatastore
- func (d *MutexDatastore) Batch() (ds.Batch, error)
- func (d *MutexDatastore) Children() []ds.Datastore
- func (d *MutexDatastore) Delete(key ds.Key) (err error)
- func (d *MutexDatastore) Get(key ds.Key) (value interface{}, err error)
- func (d *MutexDatastore) Has(key ds.Key) (exists bool, err error)
- func (d *MutexDatastore) IsThreadSafe()
- func (d *MutexDatastore) Put(key ds.Key, value interface{}) (err error)
- func (d *MutexDatastore) Query(q dsq.Query) (dsq.Results, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MutexDatastore ¶
MutexDatastore contains a child datastire and a mutex. used for coarse sync
func (*MutexDatastore) Children ¶
func (d *MutexDatastore) Children() []ds.Datastore
Children implements Shim
func (*MutexDatastore) Delete ¶
func (d *MutexDatastore) Delete(key ds.Key) (err error)
Delete implements Datastore.Delete
func (*MutexDatastore) Get ¶
func (d *MutexDatastore) Get(key ds.Key) (value interface{}, err error)
Get implements Datastore.Get
func (*MutexDatastore) Has ¶
func (d *MutexDatastore) Has(key ds.Key) (exists bool, err error)
Has implements Datastore.Has
func (*MutexDatastore) IsThreadSafe ¶
func (d *MutexDatastore) IsThreadSafe()
IsThreadSafe implements ThreadSafeDatastore
Click to show internal directories.
Click to hide internal directories.