Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexTemplate ¶
type IndexTemplate struct { IndexPatterns []string `json:"index_patterns,omitempty"` DataStream *datastream.DataStream `json:"data_stream,omitempty"` ComposedOf []string `json:"composed_of,omitempty"` }
func NewIndexTemplate ¶
func NewIndexTemplate(templateFunc ...IndexTemplateFunc) *IndexTemplate
func (IndexTemplate) Marshal ¶
func (t IndexTemplate) Marshal() ([]byte, error)
type IndexTemplateFunc ¶
type IndexTemplateFunc func(template *IndexTemplate)
func WithComposedOf ¶
func WithComposedOf(composed ...string) IndexTemplateFunc
func WithDataStream ¶
func WithDataStream(stream *datastream.DataStream) IndexTemplateFunc
func WithIndexPatterns ¶
func WithIndexPatterns(patterns ...string) IndexTemplateFunc
Click to show internal directories.
Click to hide internal directories.