package
module
Version:
v2.0.1
Opens a new window with list of versions in this module.
Published: Mar 30, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package escrud provides simple CRUD operations and search function to work with Elastic Search
Create should contain a valid JSON with key {..."id":your_unique_id}
Exists checks if there's a document with such id in such an index
type Created struct {
ID string `json:"_id"`
}
type Deleted struct {
Index string `json:"_index"`
ID string `json:"_id"`
Version int `json:"_version"`
Result string `json:"result"`
}
type Got struct {
Index string `json:"_index"`
ID string `json:"_id"`
Version int `json:"_version"`
Source interface{} `json:"_source"`
}
type Updated struct {
Index string `json:"_index"`
ID string `json:"_id"`
Version int `json:"_version"`
Result string `json:"result"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.