elastic

package
v0.0.0-...-f8bfda6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 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 Elastic

type Elastic struct {
	Client *elastic.Client
}

Elastic is our default struct for connecting through to elasticsearch

func NewClient

func NewClient(host, schema string) (*Elastic, error)

NewClient instantiates a connection to elasticsearch for direct push

func (*Elastic) PushRecords

func (e *Elastic) PushRecords(data []events.KinesisEventRecord) error

PushRecords sends a particular batch of docs over to elasticsearch endpoint

Jump to

Keyboard shortcuts

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