logcutter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultSlice is the parent slice of all unmarked content
	DefaultSlice = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cutter

type Cutter interface {
	// Slice reads on the in reader line-by-line. For each line it can produce several events
	// on the events channel. Once the reader returns EOF the events and errchan are closed.
	// If anything goes wrong while reading a single error is written to errchan, but nothing is closed.
	Slice(in io.Reader) (events <-chan *v1.LogSliceEvent, errchan <-chan error)
}

Cutter splits a log stream into slices for more structured display

var DefaultCutter Cutter = defaultCutter{}

DefaultCutter implements the default cutting behaviour

var NoCutter Cutter = noCutter{}

NoCutter does not slice the content up at all

Jump to

Keyboard shortcuts

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