Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
type Document struct { ID string `json:"_id,omitempty"` Source map[string]interface{} `json:"_source,omitempty"` }
Document is a generic document retrieved from Elasticsearch.
type Mode ¶
type Mode int
Mode describes the outcome of comparing two documents.
const ( // Unchanged means that a document has not been changed between // source and destination index. Unchanged Mode = iota // Created means that a document has been added to the destination // that didn't exist in the source index. Created // Updated means that a document has been found both in the source // and destination index, but its contents (_source) has changed. Updated // Deleted means that a document has been found in the source index // but it doesn't exist in the destination index. Deleted )
Click to show internal directories.
Click to hide internal directories.