Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Doc ¶
type Doc struct {
Properties map[string]interface{} `json:"properties"`
}
Doc is contained in the templateMapping
type Document ¶
type Document struct { ID string `json:"id"` Index string `json:"index"` IndexType string `json:"type"` Source interface{} `json:"source"` }
Document represent an es document
type Template ¶
type Template struct { IndexPatterns []string `json:"index_patterns"` // Keep the snake_case for elasticsearch template generation Settings map[string]interface{} `json:"settings,omitempty"` Mappings TemplateMapping `json:"mappings,omitempty"` }
Template is the ES template
type TemplateMapping ¶
type TemplateMapping struct {
Document Doc `json:"document"`
}
TemplateMapping embedded in template
Click to show internal directories.
Click to hide internal directories.