index

package
v0.0.0-...-dcf8ddf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL