Documentation
¶
Index ¶
- Constants
- type KeyVal
- type MongoDB
- type WriteTx
- func (tx *WriteTx) Apply(other db.WriteTx) error
- func (tx *WriteTx) Commit() error
- func (tx *WriteTx) Delete(k []byte) error
- func (tx *WriteTx) Discard()
- func (tx *WriteTx) Get(k []byte) ([]byte, error)
- func (tx *WriteTx) Iterate(prefix []byte, callback func(key, value []byte) bool) error
- func (tx *WriteTx) Set(k, v []byte) error
Constants ¶
View Source
const ( // MongodbTimeoutConnect is the timeout for connecting to the database MongodbTimeoutConnect = 10 * time.Second // MongodbTimeoutCommit is the timeout for committing a batch transaction MongodbTimeoutCommit = 12 * time.Second // MongodbTimeoutQuery is the timeout for querying the database MongodbTimeoutQuery = 4 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
MongoDB is a MongoDB implementation of the db.DB interface
Click to show internal directories.
Click to hide internal directories.