Documentation
¶
Overview ¶
Package batch lets you buffer bulk documents for insert. None of the methods provided are thread-safe, you must synchronize if desired.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct { Elastic Elasticsearch // Elasticsearch implementation Docs []interface{} // Docs buffered Index string // Index name Type string // Type name }
Batch indexes docs in bulk for reporting. Currently documents are flushed in a single write, however may allow streaming in the future.
type Elasticsearch ¶
Elasticsearch interface.
Click to show internal directories.
Click to hide internal directories.