package
Version:
v0.0.0-...-e7367dc
Opens a new window with list of versions in this module.
Published: Oct 24, 2019
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Document struct {
Title string `json:"title"`
Brand string `json:"brand"`
Price float32 `json:"price"`
Stock int `json:"stock"`
}
type Hit struct {
ID string `json:"_id"`
Source Document `json:"_source"`
}
type Hits struct {
Hits []Hit `json:"hits"`
Total Total `json:"total"`
}
type Mapper interface {
}
type Result struct {
Hits Hits `json:"hits"`
}
type Total struct {
Value int `json:"value"`
}
type Update struct {
Doc *Document `json:"doc"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.