elastic

package
v0.0.0-...-9bdf5c2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2017 License: MIT Imports: 14 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 {
	// contains filtered or unexported fields
}

func NewElasticStorage

func NewElasticStorage() *Elastic

Returns object to work with bleve

func (*Elastic) GetMessage

func (e *Elastic) GetMessage(msgId string) (doc map[string]interface{}, err error)

Returns message from elastic index

func (*Elastic) GetMessages

func (e *Elastic) GetMessages(q *storage.SearchQuery) (result *storage.SearchResult, err error)

Searches for mssages

func (*Elastic) HandleMessage

func (e *Elastic) HandleMessage(msg *gelf.Message)

Handles GELF-message received through UDP

func (*Elastic) PeriodicFlush

func (e *Elastic) PeriodicFlush(die chan bool)

Periodically flushes messages to elastic

func (*Elastic) ValidateQuery

func (e *Elastic) ValidateQuery(query string) (err error)

Validates search query

Jump to

Keyboard shortcuts

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