elasticsearchClient

package
v0.0.0-...-ecdf961 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBatchSize = 255
View Source
const (
	ErrorMemoryAllocFail = 21
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ESClient

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

func NewESClient

func NewESClient(a []string, u, p string, opt ...ElasticOption) (*ESClient, error)

func (*ESClient) BulkCreateWithIndex

func (e *ESClient) BulkCreateWithIndex(index string, bodys [][]byte, batch int) error

func (*ESClient) Query

func (e *ESClient) Query(esIndices string, buf *bytes.Buffer, windowSize int, scrollTime time.Duration) ([]interface{}, int, error)

type ElasticOption

type ElasticOption func(o *elasticOptions)

func WithDebug

func WithDebug() ElasticOption

func WithLogger

func WithLogger(l *zerolog.Logger) ElasticOption

Jump to

Keyboard shortcuts

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