elasticsearch

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: MIT Imports: 6 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 {
	Host         string `yaml:"host"`
	Index        string `yaml:"index"`
	Type         string `yaml:"type"`
	Gzip         bool   `yaml:"gzip"`
	Mapping      string `yaml:"mapping,omitempty"`
	Pipeline     string `yaml:"pipeline,omitempty"`
	PipelineName string `yaml:"pipeline_name,omitempty"`

	UsePipeline bool
	// contains filtered or unexported fields
}

Client represents the Client-Config

func (*Client) AddDocument

func (es *Client) AddDocument(id string, document interface{}, pipeline string)

AddDocument adds a Document to the Elasticsearch Bulk Processor

func (*Client) Flush

func (es *Client) Flush()

Flush flushes the Elasticsearch Client, called at the end of a command

func (*Client) Init

func (es *Client) Init()

Init initializes the Elasticsearch Client, called at the beginning of a command

Jump to

Keyboard shortcuts

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