es

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWriterIndexerFromESConf

func GetWriterIndexerFromESConf(esConf config.ElasticSearchConf) (writer *Writer, indexer *Index)

Types

type Index

type Index struct {
	// contains filtered or unexported fields
}

func NewIndex

func NewIndex(client *elastic.Client, indexFormat string, loc *time.Location) *Index

func (*Index) GetIndex

func (idx *Index) GetIndex(m map[string]any) string

type IndexFormat

type IndexFormat func(m map[string]any) string

type IndexFunc

type IndexFunc func() string

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(c config.ElasticSearchConf) (*Writer, error)

func (*Writer) Write

func (w *Writer) Write(index, val string) error

Jump to

Keyboard shortcuts

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