v5

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: 11 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 struct {
	// contains filtered or unexported fields
}

Client implements an Elasticsearch 5.x client.

func NewClient

func NewClient(cfg *config.Config) (*Client, error)

NewClient creates a new Client.

func (*Client) Iterate

func (c *Client) Iterate(ctx context.Context, req *elastic.IterateRequest) (<-chan *diff.Document, <-chan error)

Iterate iterates over the index.

func (*Client) SetBatchSize

func (c *Client) SetBatchSize(size int)

SetBatchSize specifies the size of a single scroll operation.

Jump to

Keyboard shortcuts

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