search

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogReader

func NewLogReader(reader io.Reader, gzipped bool, filter Filter) (*logReader, error)

func NewSearchLog

func NewSearchLog(entriesHandler func(*entry.Entry) (continueRead bool, err error), baseDir string) *searchLog

Types

type Filter

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

func NewFilter

func NewFilter(req SearchRequest) (Filter, error)

type SearchRequest

type SearchRequest struct {
	ModuleName string `valid:"required~Required"`
	From       time.Time
	To         time.Time
	Host       []string
	Event      []string
	Level      []string
	Limit      int `valid:"required~Required,range(1|10000)"`
	Offset     int
}

type SearchResponse added in v1.1.2

type SearchResponse struct {
	ModuleName string `json:",omitempty"`
	Host       string `json:",omitempty"`
	Event      string `json:",omitempty"`
	Level      string `json:",omitempty"`
	Time       string `json:",omitempty"`
	Request    string `json:",omitempty"`
	Response   string `json:",omitempty"`
	ErrorText  string `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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