elastic

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Iterate(context.Context, *IterateRequest) (<-chan *diff.Document, <-chan error)
}

Client encapsulates access to an Elasticsearch cluster.

type ClientOption

type ClientOption func(Client)

ClientOption specifies the signature for setting a generic option for a Client.

func WithBatchSize

func WithBatchSize(size int) ClientOption

WithBatchSize allows setting the batch size for scrolling through the documents (for clients that support this).

type ClientWithBatchSize

type ClientWithBatchSize interface {
	SetBatchSize(int)
}

ClientWithBatchSize should be implemented by clients that support setting the batch size for scrolling.

type IterateRequest

type IterateRequest struct {
	RawQuery            string
	SortField           string
	ReplaceField        string
	SourceFilterInclude []string
	SourceFilterExclude []string
}

IterateRequest specifies a request for the Iterate function.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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