logsource

package
v0.0.0-...-332dcef Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ingest

func Ingest(ctx context.Context, filePath string) (<-chan Result[*LogLine], error)

Ingest is a convenience function that creates a fileIngestor and reads from it.

Types

type LogLine

type LogLine struct {
	LineNumber int
	Content    string
}

LogLine represents a single raw log line read from input.

type Result

type Result[T any] struct {
	Value T
	Err   error
}

Result wraps either a successfully read value or a read error, similar to Result<T, E> in Rust.

Jump to

Keyboard shortcuts

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