es

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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]interface{}) string

type IndexFormat

type IndexFormat func(m map[string]interface{}) 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