logs

package
v0.0.0-...-2578c2a Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrepLine

func GrepLine(line string, matches RAW) bool

Types

type Parsed

type Parsed []ParsedLine

func (Parsed) Fields

func (p Parsed) Fields(key string, failOnError bool) (RAW, error)

func (Parsed) GrepCondition

func (p Parsed) GrepCondition(find map[string]func(any) bool) Parsed

type ParsedLine

type ParsedLine map[string]any

func (ParsedLine) Get

func (pl ParsedLine) Get(key string) (any, error)

type Parser

type Parser func(log string) (map[string]any, error)

type RAW

type RAW []string

func (RAW) Grep

func (r RAW) Grep(matches []string) RAW

func (RAW) ParseAll

func (r RAW) ParseAll(p Parser) Parsed

Jump to

Keyboard shortcuts

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