Documentation ¶
Index ¶
- type Streamlet
- func (db *Streamlet) Delete(id string)
- func (db *Streamlet) DeleteBulk(ids []string)
- func (db *Streamlet) Edit(id string, document map[string]interface{})
- func (db *Streamlet) Find(callback func(document StreamletDocument) bool) []StreamletDocument
- func (db *Streamlet) FindOne(callback func(document StreamletDocument) bool) StreamletDocument
- func (db *Streamlet) Get(id string) StreamletDocument
- func (db *Streamlet) Init()
- func (db *Streamlet) Insert(document map[string]interface{})
- func (db *Streamlet) InsertBulk(documents []map[string]interface{})
- func (db *Streamlet) Keys() []string
- func (db *Streamlet) Update(document StreamletDocument)
- type StreamletDocument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Streamlet ¶
type Streamlet struct { ReadWriter io.ReadWriter Writer *bufio.Writer FSI fsi.FSI Documents map[string]StreamletDocument }
func (*Streamlet) DeleteBulk ¶
Deletes more than one line of documents from the database.
func (*Streamlet) Find ¶
func (db *Streamlet) Find(callback func(document StreamletDocument) bool) []StreamletDocument
Finds multiple documents that return true as a result of the callback function.
func (*Streamlet) FindOne ¶
func (db *Streamlet) FindOne(callback func(document StreamletDocument) bool) StreamletDocument
Finds one document that return true as a result of the callback function.
func (*Streamlet) Get ¶
func (db *Streamlet) Get(id string) StreamletDocument
Gets one document by id.
func (*Streamlet) InsertBulk ¶
Inserts more than one line of documents into the database.
func (*Streamlet) Update ¶
func (db *Streamlet) Update(document StreamletDocument)
type StreamletDocument ¶
Click to show internal directories.
Click to hide internal directories.