Documentation ¶
Index ¶
- Variables
- type MongoDS
- func (m *MongoDS) Batch() (datastore.Batch, error)
- func (m *MongoDS) Close() error
- func (m *MongoDS) Delete(key datastore.Key) error
- func (m *MongoDS) Get(key datastore.Key) ([]byte, error)
- func (m *MongoDS) GetSize(key datastore.Key) (int, error)
- func (m *MongoDS) Has(key datastore.Key) (bool, error)
- func (m *MongoDS) NewTransaction(readOnly bool) (datastore.Txn, error)
- func (m *MongoDS) NewTransactionExtended(readOnly bool) (dsextensions.TxnExt, error)
- func (m *MongoDS) Put(key datastore.Key, val []byte) error
- func (m *MongoDS) Query(q query.Query) (query.Results, error)
- func (m *MongoDS) QueryExtended(q dsextensions.QueryExt) (query.Results, error)
- func (m *MongoDS) Sync(datastore.Key) error
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchAlreadyCommited = errors.New("batch already commited")
)
View Source
var (
ErrClosed = errors.New("datastore was closed")
)
View Source
var (
ErrTxnFinalized = errors.New("txn was already finalized")
)
Functions ¶
This section is empty.
Types ¶
type MongoDS ¶
type MongoDS struct {
// contains filtered or unexported fields
}
func (*MongoDS) NewTransaction ¶
func (*MongoDS) NewTransactionExtended ¶ added in v0.1.3
func (m *MongoDS) NewTransactionExtended(readOnly bool) (dsextensions.TxnExt, error)
func (*MongoDS) QueryExtended ¶
Click to show internal directories.
Click to hide internal directories.