logreader

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry map[string]interface{}

Entry is a single JSON entry in the log.

func EntriesFromContent

func EntriesFromContent(content []byte) ([]Entry, error)

func EntriesFromFile

func EntriesFromFile(file string) ([]Entry, error)

EntriesFromFile returns a slice of all of the log entries in the given file. Assumes that each line in the file is a JSON object that represents a log entry.

Jump to

Keyboard shortcuts

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