elasticsink

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNew

func MustNew(
	client *elastic.Client,
	options ...Option,
) pipeline.Sink

MustNew creates a new sink that saves documents to elastic

Types

type DeleteMessage added in v0.10.0

type DeleteMessage struct {
	ID    string
	Index string
}

DeleteMessage deletes the document from the elasticsearch

type IndexMessage added in v0.10.0

type IndexMessage struct {
	ID       string
	Index    string
	Document interface{}
}

IndexMessage saves the document into elasticsearch

type Option added in v0.11.0

type Option func(*elasticSink)

func WithIgnoreIndexNotFoundOnDelete added in v0.11.0

func WithIgnoreIndexNotFoundOnDelete() Option

type SinkMessage

type SinkMessage = IndexMessage

SinkMessage is the input for the Elastic Sink Deprecated: this is an alias to IndexMessage, use that instead.

Jump to

Keyboard shortcuts

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