jep

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package jep parses systemd journal export format readers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buffer

func Buffer(max int) option

Used with New. Example: jep.Buffer(100_000)

Types

type Entry

type Entry map[string]string

type Error

type Error interface {
	Error() error
}

func New

func New(ctx context.Context, r io.Reader, opt ...option) (chan Entry, Error)

New provides a channel of parsed journal rows. Each Entry is a map of one journal line. Each journal lines is composed of multiple fields.

BUG(aletheia7): Journal fields can have duplicates. Entry is a map and will only provide the last duplicated journal field. Duplicate fields are very rare and I have not seen one. Entry is a map in order to support quick lookups.

Notes

Bugs

  • Journal fields can have duplicates. Entry is a map and will only provide the last duplicated journal field. Duplicate fields are very rare and I have not seen one. Entry is a map in order to support quick lookups.

Jump to

Keyboard shortcuts

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