Documentation ¶
Index ¶
- type MongoDB
- func (mdb *MongoDB) Commit(its []*x.Instruction) error
- func (mdb *MongoDB) GetEntity(subject string) (result []x.Instruction, err error)
- func (mdb *MongoDB) Init(args ...string)
- func (mdb *MongoDB) IsNew(subject string) bool
- func (mdb *MongoDB) Iterate(fromId string, num int, ch chan x.Entity) (found int, last x.Entity, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
MongoDB store backed by MongoDB
func (*MongoDB) Commit ¶
func (mdb *MongoDB) Commit(its []*x.Instruction) error
Commit inserts the instructions into the collection as documents
func (*MongoDB) GetEntity ¶
func (mdb *MongoDB) GetEntity(subject string) (result []x.Instruction, err error)
GetEntity retrieves all documents matching the subject identifier
Click to show internal directories.
Click to hide internal directories.