index

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ESClient

func ESClient() *elastic.Client

ESClient creates or returns an ElasticSearch Client. This function should always be used to perform any ElasticSearch action. Deprecated: use elasticsearch driver package instead

Types

type CustomRetrier

type CustomRetrier struct {
	// contains filtered or unexported fields
}

CustomRetrier for configuring the retrier for the ElasticSearch client.

func NewCustomRetrier

func NewCustomRetrier() *CustomRetrier

NewCustomRetrier creates custom retrier for elasticsearch

func (*CustomRetrier) Retry

func (r *CustomRetrier) Retry(
	ctx context.Context,
	retry int,
	req *http.Request,
	resp *http.Response,
	err error) (time.Duration, bool, error)

Retry defines how the retrier should deal with retrying the elasticsearch connection.

Jump to

Keyboard shortcuts

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