elasticsearch

package
v1.0.0-...-17f04f2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticSearch

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

func New

func New(host, scheme, index, namespace, awsKey, awsSecret string) (ElasticSearch, error)

New creates a new instance of an ES client for interaction with an AWS provied ES server

func (ElasticSearch) Delete

func (e ElasticSearch) Delete(key string)

Delete removes an ES entry by key

func (ElasticSearch) Flush

func (e ElasticSearch) Flush()

Flush tells ES to free memory from the index and flush data to disk.

func (ElasticSearch) Get

func (e ElasticSearch) Get(key string) []byte

Get attempts to grab ES entries by key, index and doctype

func (ElasticSearch) Put

func (e ElasticSearch) Put(key string, data []byte) error

Put overwrites or creates a new ES entry based on key, index, and doctype

Jump to

Keyboard shortcuts

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