elastic

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

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

Go to latest
Published: Aug 19, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIndexTypes

func GetIndexTypes(p *models.Project) []string

Types

type LogRecord

type LogRecord struct {
	Source string `json:"source"`
	Type   string `json:"type"`
}

LogRecord loaded from elastic

type SearchLogsResult

type SearchLogsResult struct {
	Logs  []LogRecord `json:"logs"`
	Total int64       `json:"total"`
}

SearchLogsResult contains logs and total number of records in storage.

func SearchLogs

func SearchLogs(user *models.User, project *models.Project, types []string, queryString string, page int) (SearchLogsResult, error)

SearchLogs sends query to elastic search index types - ealstic types to search on. queryString - user provided data.

Jump to

Keyboard shortcuts

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