Documentation
¶
Index ¶
- func NewLogReader(reader io.Reader, gzipped bool, filter Filter) (*logReader, error)
- func NewSearchLog(entriesHandler func(*entry.Entry) (continueRead bool, err error), ...) *searchLog
- type Filter
- type SearchRequest
- type SearchResponse
- type SearchWithCursorRequest
- type SearchWithCursorResponse
- type SyncSearchLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogReader ¶
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func NewFilter ¶
func NewFilter(req SearchRequest) (Filter, error)
type SearchRequest ¶
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"`
}
type SearchWithCursorRequest ¶ added in v1.3.0
type SearchWithCursorRequest struct {
Request SearchRequest
CursorId string
BatchSize int `valid:"required~Required,range(1|10000)"`
}
type SearchWithCursorResponse ¶ added in v1.3.0
type SearchWithCursorResponse struct {
CursorId string
Items []SearchResponse
HasMore bool
}
type SyncSearchLog ¶ added in v1.3.0
type SyncSearchLog struct {
// contains filtered or unexported fields
}
func NewSyncSearchService ¶ added in v1.3.0
func NewSyncSearchService(req SearchRequest, baseDir string) (*SyncSearchLog, error)
Click to show internal directories.
Click to hide internal directories.