source

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Line *string
	Err  error
	Done bool
}

type Source

type Source interface {
	Name() string
	Events() <-chan Event
	Close() error
}

func NewFileSource

func NewFileSource(path string, cfg appconfig.SourceConfig) (Source, error)

func NewStdinSource

func NewStdinSource(file *os.File, cfg appconfig.InputConfig) Source

func NewTailedFileSource

func NewTailedFileSource(path string, cfg appconfig.SourceConfig) (Source, error)

func Open

func Open(inputPath string, stdin *os.File, cfg *appconfig.Config) (Source, error)

Jump to

Keyboard shortcuts

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