Documentation ¶
Index ¶
- type Elastic
- func (e *Elastic) GetMessage(msgId string) (doc map[string]interface{}, err error)
- func (e *Elastic) GetMessages(q *storage.SearchQuery) (result *storage.SearchResult, err error)
- func (e *Elastic) HandleMessage(msg *gelf.Message)
- func (e *Elastic) PeriodicFlush(die chan bool)
- func (e *Elastic) ValidateQuery(query string) (err error)
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 (*Elastic) GetMessage ¶
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 ¶
Handles GELF-message received through UDP
func (*Elastic) PeriodicFlush ¶
Periodically flushes messages to elastic
func (*Elastic) ValidateQuery ¶
Validates search query
Click to show internal directories.
Click to hide internal directories.