indexer

package
v0.0.0-...-ae3587a Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkIndexDoc

type BulkIndexDoc struct {
	DocumentId    string
	BulkOperation string
}

type IndexFunc

type IndexFunc func(*changestream.ChangeMessage) (*BulkIndexDoc, error)

IndexFunc is the type for the functions which will insert data into elasticsearch

type Indexer

type Indexer struct {
	*worker.Worker
	// contains filtered or unexported fields
}

Indexer is the type definition of the esInserter

func New

func New(esHosts []string, esIndex, esMapping, kafkaAddress, changesTopic, kafkaGroupID string, indexFunc IndexFunc, bulkChunkSize int, bulkFetchTimeout int) *Indexer

New returns an initialised Indexer

Jump to

Keyboard shortcuts

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