Documentation
¶
Index ¶
- Variables
- type Datastore
- func (d *Datastore) Batch() (ds.Batch, error)
- func (d *Datastore) Close() (err error)
- func (a Datastore) Delete(key ds.Key) (err error)
- func (d *Datastore) DiskUsage() (uint64, error)
- func (a Datastore) Get(key ds.Key) (value []byte, err error)
- func (a Datastore) GetSize(key ds.Key) (size int, err error)
- func (a Datastore) Has(key ds.Key) (exists bool, err error)
- func (d *Datastore) NewTransaction(readOnly bool) (ds.Txn, error)
- func (a Datastore) Put(key ds.Key, value []byte) (err error)
- func (a Datastore) Query(q dsq.Query) (dsq.Results, error)
- func (a Datastore) Sync(prefix ds.Key) error
- type Options
- type Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var Plugins = []plugin.Plugin{ &Plugin{}, }
Plugins is exported list of plugins that will be loaded
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
Datastore is the main structure.
func NewDatastore ¶
NewDatastore returns a new datastore backed by leveldb
for path == "", an in memory bachend will be chosen
func (*Datastore) DiskUsage ¶
DiskUsage returns the current disk size used by this levelDB. For in-mem datastores, it will return 0.
func (*Datastore) NewTransaction ¶
NewTransaction creates a transation
type Options ¶
Options is an alias of syndtr/goleveldb/opt.Options which might be extended in the future.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the main structure.
func (*Plugin) DatastoreConfigParser ¶
func (p *Plugin) DatastoreConfigParser() fsrepo.ConfigFromMap
DatastoreConfigParser returns a configuration stub for a Cosmos datastore from the given parameters
func (*Plugin) DatastoreTypeName ¶
DatastoreTypeName defines the type name of the datastore
Click to show internal directories.
Click to hide internal directories.